Skip to content

Commit a301d2d

Browse files
committed
Fix default memberlist configuration value for RetransmitMult.
If configuration is not explicitly given for RetransmitMult (via `-memberlist.retransmit_factor`), then it is intended to be picked up from `DefaultLANConfig`. However, though the correct value was being used to configure `memberlist` itself, zero would be passed into the `TransmitLimitedQueue` used for broadcasting ring updates. This essentially means that ring updates are only ever gossiped once. Signed-off-by: Steve Simpson <[email protected]>
1 parent cae36dc commit a301d2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/ring/kv/memberlist/memberlist_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ func (m *KV) starting(_ context.Context) error {
415415
m.memberlist = list
416416
m.broadcasts = &memberlist.TransmitLimitedQueue{
417417
NumNodes: list.NumMembers,
418-
RetransmitMult: m.cfg.RetransmitMult,
418+
RetransmitMult: mlCfg.RetransmitMult,
419419
}
420420
m.initWG.Done()
421421

0 commit comments

Comments
 (0)