Skip to content

Commit

Permalink
fixup! Refactor Leadership lease keepalive
Browse files Browse the repository at this point in the history
  • Loading branch information
carlhoerberg committed Dec 13, 2024
1 parent 3fb5f9c commit 6894ace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lavinmq/etcd.cr
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ module LavinMQ
private def keepalive_loop
ttl = @etcd.lease_ttl(@lease_id)
loop do
sleep ttl.seconds
sleep (ttl * 0.7).seconds
ttl = @etcd.lease_keepalive(@lease_id)
end
rescue ex
Expand Down

0 comments on commit 6894ace

Please sign in to comment.