From 15cd821ca533d8994b9d8dd5542e43f8e30d9f56 Mon Sep 17 00:00:00 2001 From: walkline Date: Fri, 1 Mar 2024 00:30:45 +0100 Subject: [PATCH] Fix goroutines leak in game-load-balancer. --- apps/game-load-balancer/service/gameserver-grpc-conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/game-load-balancer/service/gameserver-grpc-conn.go b/apps/game-load-balancer/service/gameserver-grpc-conn.go index b699c8b..01f8a72 100644 --- a/apps/game-load-balancer/service/gameserver-grpc-conn.go +++ b/apps/game-load-balancer/service/gameserver-grpc-conn.go @@ -52,7 +52,7 @@ func (m *gameServerGRPCConnMgrImpl) GRPCConnByGameServerAddress(address string) conn, err = m.establishConn(connAddress) if err == nil { m.lock.Lock() - m.addressWithConn[address] = conn + m.addressWithConn[connAddress] = conn m.lock.Unlock() } }