Skip to content

Commit

Permalink
node-state-server: fix the rwmutex initialization
Browse files Browse the repository at this point in the history
Signed-off-by: Muvaffak Onus <me@muvaf.com>
  • Loading branch information
muvaf committed Apr 27, 2024
1 parent 89ddfc2 commit 958d9b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/controller/node/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ type Server struct {

func NewServer() *Server {
return &Server{
nodes: map[string]NodeState{},
nodes: map[string]NodeState{},
RWMutex: &sync.RWMutex{},
}
}

Expand Down

0 comments on commit 958d9b3

Please sign in to comment.