From 958d9b3c993e2c515233f52998e48603fff57ca9 Mon Sep 17 00:00:00 2001 From: Muvaffak Onus Date: Sat, 27 Apr 2024 08:10:12 +0300 Subject: [PATCH] node-state-server: fix the rwmutex initialization Signed-off-by: Muvaffak Onus --- internal/controller/node/server.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/controller/node/server.go b/internal/controller/node/server.go index 92e3447..b6b254a 100644 --- a/internal/controller/node/server.go +++ b/internal/controller/node/server.go @@ -45,7 +45,8 @@ type Server struct { func NewServer() *Server { return &Server{ - nodes: map[string]NodeState{}, + nodes: map[string]NodeState{}, + RWMutex: &sync.RWMutex{}, } }