Skip to content

Commit

Permalink
Improve web3 connection pooling
Browse files Browse the repository at this point in the history
  • Loading branch information
Uxio0 committed Jun 30, 2021
1 parent 0db1fbe commit d7b703c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cachetools==4.2.2
celery==5.1.1
celery==5.1.2
django-authtools==1.7.0
django-cache-memoize==0.1.9
django-celery-beat==2.2.0
Expand All @@ -20,7 +20,7 @@ docutils==0.17.1
drf-yasg[validation]==1.20.0
ethereum==2.3.2
firebase-admin==5.0.1
gnosis-py[django]==3.1.8
gnosis-py[django]==3.1.9
gunicorn[gevent]==20.1.0
hexbytes==0.2.1
packaging>=20.9
Expand Down
2 changes: 1 addition & 1 deletion safe_transaction_service/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "3.1.6"
__version__ = "3.1.7"
__version_info__ = tuple(
[
int(num) if num.isdigit() else num
Expand Down
5 changes: 3 additions & 2 deletions safe_transaction_service/utils/loggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def __call__(self, request: HttpRequest):
response = self.get_response(request)
if request.resolver_match:
route = request.resolver_match.route if request.resolver_match else request.path
self.logger.info('MT::%s::%s::%s::%d::%s', request.method, route, self.get_milliseconds_now() - milliseconds,
response.status_code, request.path)
delta = self.get_milliseconds_now() - milliseconds
self.logger.info('MT::%s::%s::%s::%d::%s',
request.method, route, delta, response.status_code, request.path)
return response

0 comments on commit d7b703c

Please sign in to comment.