Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 7592722

Browse files
lzhfromustcthaJeztah
authored andcommitted
Avoid a data race in container/health.go
Signed-off-by: Ziheng Liu <lzhfromustc@gmail.com> (cherry picked from commit 53e0c5012637656de1765c330b2549aa7088b853) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 32206f17d045d137e27bd1d15ed1cb4407abb9fc Component: engine
1 parent a62d4a6 commit 7592722

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/engine/container/health.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func (s *Health) String() string {
2222
case types.Starting:
2323
return "health: starting"
2424
default: // Healthy and Unhealthy are clear on their own
25-
return s.Health.Status
25+
return status
2626
}
2727
}
2828

0 commit comments

Comments
 (0)