Skip to content

Commit

Permalink
Merge pull request #2 from qawolf/node-state-mutex
Browse files Browse the repository at this point in the history
node-state-server: fix the rwmutex initialization
  • Loading branch information
muvaf authored Apr 28, 2024
2 parents 89ddfc2 + 958d9b3 commit 0dcf612
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 0dcf612

Please sign in to comment.