Kaynağa Gözat

Merge pull request #39645 from lzhfromustc/39503

container: avoid a data race in container/health.go
Akihiro Suda 6 yıl önce
ebeveyn
işleme
d1f4709466
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      container/health.go

+ 1 - 1
container/health.go

@@ -22,7 +22,7 @@ func (s *Health) String() string {
 	case types.Starting:
 	case types.Starting:
 		return "health: starting"
 		return "health: starting"
 	default: // Healthy and Unhealthy are clear on their own
 	default: // Healthy and Unhealthy are clear on their own
-		return s.Health.Status
+		return status
 	}
 	}
 }
 }