summaryrefslogtreecommitdiff
path: root/src/gatherer.erl
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2020-04-14 17:20:27 +0200
committerJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2020-04-20 15:13:44 +0200
commitcf90ad2f782922350b0986b419fd9487203d2cfd (patch)
treead4dfab2c33d3d7fdfcf7b199a68862bce935815 /src/gatherer.erl
parente73791a140e97fb7356c5fb893b865937a37e2c6 (diff)
downloadrabbitmq-server-git-cf90ad2f782922350b0986b419fd9487203d2cfd.tar.gz
rabbit_feature_flags: Improve timeout computation in `mark_as_enabled_remotely()`
The rounded value of `(timer:now_diff(T1, T0) div 1000)` was often 0, leading to no decrease in timeout, i.e. the equivalent of an infinite loop. Now, the division happens after the substraction. Also, to avoid to much hammering, we sleep for one second between retries.
Diffstat (limited to 'src/gatherer.erl')
0 files changed, 0 insertions, 0 deletions