Skip to content

Commit

Permalink
Make commit_interval diff use >= instead of >
Browse files Browse the repository at this point in the history
  • Loading branch information
johan-bjareholt committed Feb 13, 2021
1 parent 6521df6 commit fdeceb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aw_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def heartbeat(
# If last_heartbeat becomes longer than commit_interval
# then commit, else cache merged.
diff = (last_heartbeat.duration).total_seconds()
if diff > commit_interval:
if diff >= commit_interval:
data = merge.to_json_dict()
self.request_queue.add_request(endpoint, data)
self.last_heartbeat[bucket_id] = event
Expand Down

0 comments on commit fdeceb0

Please sign in to comment.