Skip to content

Commit fdeceb0

Browse files
Make commit_interval diff use >= instead of >
1 parent 6521df6 commit fdeceb0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

aw_client/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def heartbeat(
229229
# If last_heartbeat becomes longer than commit_interval
230230
# then commit, else cache merged.
231231
diff = (last_heartbeat.duration).total_seconds()
232-
if diff > commit_interval:
232+
if diff >= commit_interval:
233233
data = merge.to_json_dict()
234234
self.request_queue.add_request(endpoint, data)
235235
self.last_heartbeat[bucket_id] = event

0 commit comments

Comments
 (0)