kopia lustrzana https://github.com/bugout-dev/moonstream
Add suggested changes.
rodzic
73df559c3e
commit
8bf0e723f0
|
@ -260,10 +260,16 @@ supportsInterface_abi = [
|
|||
}
|
||||
]
|
||||
|
||||
MOONSTREAM_INTERNAL_REQUEST_TIMEOUT_SECONDS = os.environ.get(
|
||||
"MOONSTREAM_INTERNAL_REQUEST_TIMEOUT_SECONDS", "10"
|
||||
)
|
||||
|
||||
MOONSTREAM_INTERNAL_REQUEST_TIMEOUT_SECONDS = int(
|
||||
MOONSTREAM_INTERNAL_REQUEST_TIMEOUT_SECONDS
|
||||
MOONSTREAM_INTERNAL_REQUEST_TIMEOUT_SECONDS_RAW = os.environ.get(
|
||||
"MOONSTREAM_INTERNAL_REQUEST_TIMEOUT_SECONDS"
|
||||
)
|
||||
MOONSTREAM_INTERNAL_REQUEST_TIMEOUT_SECONDS = 10
|
||||
try:
|
||||
if MOONSTREAM_INTERNAL_REQUEST_TIMEOUT_SECONDS_RAW is not None:
|
||||
MOONSTREAM_INTERNAL_REQUEST_TIMEOUT_SECONDS = int(
|
||||
MOONSTREAM_INTERNAL_REQUEST_TIMEOUT_SECONDS_RAW
|
||||
)
|
||||
except:
|
||||
raise Exception(
|
||||
f"Could not parse MOONSTREAM_INTERNAL_REQUEST_TIMEOUT_SECONDS as int: {MOONSTREAM_INTERNAL_REQUEST_TIMEOUT_SECONDS_RAW}"
|
||||
)
|
||||
|
|
Ładowanie…
Reference in New Issue