Commit cd640230 by Ł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
1 parent 1997adb2
......@@ -81,7 +81,7 @@ class RetryingCaucaseClient(CaucaseClient):
),
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()
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!