Skip to content

Commit

Permalink
Update request_consumer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ctri-The-Third committed Nov 15, 2023
1 parent 5b87a67 commit 5432242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion straders_sdk/request_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _consume_until_stopped(self):
)
else:
package.priority = 0
self.queue.put(0, package)
self.queue.put((0, package))
sleep(max(0, (next_request - datetime.now()).total_seconds()))
else:
sleep(interval.total_seconds())
Expand Down

0 comments on commit 5432242

Please sign in to comment.