Skip to content

Commit

Permalink
use less than comparsion in auth token expires_in
Browse files Browse the repository at this point in the history
  • Loading branch information
elfkuzco committed Jun 29, 2024
1 parent b37fce2 commit 49c3cd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker/manager/src/mirrors_qa_manager/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def query_api(
if self.auth_credentials is None:
self.auth_credentials = authenticate(self.private_key, self.worker_id)

if self.auth_credentials.expires_in > datetime.datetime.now():
if self.auth_credentials.expires_in < datetime.datetime.now():
self.auth_credentials = authenticate(self.private_key, self.worker_id)

req_headers = {
Expand Down

0 comments on commit 49c3cd3

Please sign in to comment.