mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-10 13:52:58 +00:00
feat(node): let NODE API region default to us-east-1 (#1631)
Fixes #1622 To sync with python API
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user