Browse Source

Merge pull request #39645 from lzhfromustc/39503

container: avoid a data race in container/health.go
Akihiro Suda 6 năm trước cách đây
mục cha
commit
d1f4709466
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      container/health.go

+ 1 - 1
container/health.go

@@ -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
 	}
 }