feat(node): let NODE API region default to us-east-1 (#1631)

Fixes #1622 
To sync with python API
This commit is contained in:
LuQQiu
2024-09-13 11:48:57 -07:00
committed by GitHub
parent 1c123b58d8
commit 7ed86cadfb
3 changed files with 25 additions and 22 deletions

View File

@@ -82,7 +82,7 @@ async function callWithMiddlewares (
interface MiddlewareInvocationOptions {
responseType?: ResponseType
timeout?: number,
timeout?: number
}
/**
@@ -130,8 +130,8 @@ export class HttpLancedbClient {
url: string,
apiKey: string,
timeout?: number,
private readonly _dbName?: string,
private readonly _dbName?: string
) {
this._url = url
this._apiKey = () => apiKey
@@ -237,7 +237,7 @@ export class HttpLancedbClient {
try {
response = await callWithMiddlewares(req, this._middlewares, {
responseType,
timeout: this._timeout,
timeout: this._timeout
})
// return response