mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Avoid a data race in container/health.go
Signed-off-by: Ziheng Liu <lzhfromustc@gmail.com>
This commit is contained in:
@@ -22,7 +22,7 @@ func (s *Health) String() string {
|
||||
case types.Starting:
|
||||
return "health: starting"
|
||||
default: // Healthy and Unhealthy are clear on their own
|
||||
return s.Health.Status
|
||||
return status
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user