Skip to content

Commit

Permalink
use the timeout specified in the multi instance config (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodlz committed May 9, 2024
1 parent a92d173 commit ee006b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion penquins/penquins.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def add(self, name, cfg, **kwargs):
"head": self.instances[name]["session"].head,
}
# mount session adapters
timeout = kwargs.get("timeout", DEFAULT_TIMEOUT)
timeout = cfg.get("timeout", kwargs.get("timeout", DEFAULT_TIMEOUT))
pool_connections = kwargs.get("pool_connections", DEFAULT_POOLSIZE)
pool_maxsize = kwargs.get("pool_maxsize", DEFAULT_POOLSIZE)
max_retries = kwargs.get("max_retries", DEFAULT_RETRIES)
Expand Down

0 comments on commit ee006b2

Please sign in to comment.