Commit cd640230 authored by Łukasz Nowak's avatar Łukasz Nowak Committed by Vincent Pelletier

cli: Use utcnow() as everywhere else

Timedeltas between utcnow() and now() depend on system timezone, so
they can last many hours when a few seconds is intended.

The now() here was entered by mistake.

/reviewed-on !5
parent 1997adb2
...@@ -81,7 +81,7 @@ class RetryingCaucaseClient(CaucaseClient): ...@@ -81,7 +81,7 @@ class RetryingCaucaseClient(CaucaseClient):
), ),
file=self._log_file, file=self._log_file,
) )
self._until(datetime.datetime.now() + datetime.timedelta(0, 10)) self._until(datetime.datetime.utcnow() + datetime.timedelta(0, 10))
_cryptography_backend = default_backend() _cryptography_backend = default_backend()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment