From 6c4d34d2f85310246966820f19cce196d402fc63 Mon Sep 17 00:00:00 2001 From: Kalle Fagerberg Date: Fri, 9 May 2025 22:44:22 +0200 Subject: [PATCH] Fix ring local example failing getting TCP config overridden --- ring/example/local/local.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ring/example/local/local.go b/ring/example/local/local.go index 4a0089140..c0693de03 100644 --- a/ring/example/local/local.go +++ b/ring/example/local/local.go @@ -162,10 +162,8 @@ func SimpleMemberlistKV(bindaddr string, bindport int, joinmembers []string) *me config.Codecs = []codec.Codec{ring.GetCodec()} // TCPTransport defines what addr and port this particular peer should listen on. - config.TCPTransport = memberlist.TCPTransportConfig{ - BindPort: bindport, - BindAddrs: []string{bindaddr}, - } + config.TCPTransport.BindPort = bindport + config.TCPTransport.BindAddrs = []string{bindaddr} // joinmembers are the addresses of peers who are already in the memberlist group. // Usually provided if this peer is trying to join an existing cluster.