-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow configuration of internal parameters #947
Allow configuration of internal parameters #947
Conversation
gnosis/safe/api/base_api.py
Outdated
@@ -24,7 +25,7 @@ def __init__( | |||
network: EthereumNetwork, | |||
ethereum_client: Optional[EthereumClient] = None, | |||
base_url: Optional[str] = None, | |||
request_timeout: int = 10, | |||
request_timeout: int = int(os.environ.get("SAFE_BASE_API_REQUEST_TIMEOUT", 10)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that would be better define this timeout in the childs, intead here.
I mean something like SAFE_TRANSACTION_SERVICE_REQUEST_TIMEOUT
, and the same for the relay, but not sure if will be continued.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Relay is discontinued, we should remove it. But I agree on defining this variable for every child
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in TransactionServiceApi. RelayServiceApi will be removed in this PR.
@falvaradorodriguez Could you add documentation for this when it's merged? |
|
Closes #784
To be considered:
Some of this task was done in these previous PRs:
Make EthereumClient timeouts configurable via envvars #209
Make Django dependency optional #641
I have checked some timeouts that were hardcoded, I would like to check with the team what other settings are missing.