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{}, } }