We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d61e1d1 commit 9216be4Copy full SHA for 9216be4
1 file changed
wherobots/db/driver.py
@@ -33,8 +33,8 @@ def connect(
33
host: str = DEFAULT_ENDPOINT,
34
token: str = None,
35
api_key: str = None,
36
- runtime: Runtime = DEFAULT_RUNTIME,
37
- region: Region = DEFAULT_REGION,
+ runtime: Runtime = None,
+ region: Region = None,
38
wait_timeout_seconds: int = DEFAULT_SESSION_WAIT_TIMEOUT_SECONDS,
39
) -> Connection:
40
if not token and not api_key:
@@ -48,6 +48,9 @@ def connect(
48
elif api_key:
49
headers["X-API-Key"] = api_key
50
51
+ runtime = runtime or DEFAULT_RUNTIME
52
+ region = region or DEFAULT_REGION
53
+
54
logging.info(
55
"Requesting %s/%s runtime in %s from %s ...",
56
runtime.name,
0 commit comments