Avoid a data race in container/health.go
Signed-off-by: Ziheng Liu <lzhfromustc@gmail.com>
(cherry picked from commit 53e0c50126
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
9077436e6e
commit
32206f17d0
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue