Skip to content

Commit

Permalink
don't loop when sending lag to ack channel
Browse files Browse the repository at this point in the history
  • Loading branch information
kickster97 committed Oct 31, 2023
1 parent e125e67 commit 3ea75bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lavinmq/replication/server.cr
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,7 @@ module LavinMQ
@acked_bytes += len
if max_lag = Config.instance.max_lag
if lag < max_lag
while @ack.try_send lag
end
@ack.try_send lag
end
end
end
Expand Down

0 comments on commit 3ea75bf

Please sign in to comment.