Skip to content

Commit

Permalink
remove resourceGraphLock
Browse files Browse the repository at this point in the history
  • Loading branch information
maximpertsov committed Sep 9, 2024
1 parent 1f34a19 commit 3556889
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions robot/impl/local_robot.go
Original file line number Diff line number Diff line change
Expand Up @@ -1422,9 +1422,7 @@ func (r *localRobot) Shutdown(ctx context.Context) error {
func (r *localRobot) MachineStatus(ctx context.Context) (robot.MachineStatus, error) {
var result robot.MachineStatus

r.manager.resourceGraphLock.Lock()
result.Resources = append(result.Resources, r.manager.resources.Status()...)
r.manager.resourceGraphLock.Unlock()

r.configRevisionMu.RLock()
result.Config = r.configRevision
Expand Down

0 comments on commit 3556889

Please sign in to comment.