Skip to content

Commit cb394a6

Browse files
committed
restartmanager: rename max/min as it collides with go1.21 builtin
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 634f6ec commit cb394a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

restartmanager/restartmanager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func (rm *RestartManager) ShouldRestart(exitCode uint32, hasBeenManuallyStopped
8686
restart = true
8787
case rm.policy.IsOnFailure():
8888
// the default value of 0 for MaximumRetryCount means that we will not enforce a maximum count
89-
if max := rm.policy.MaximumRetryCount; max == 0 || rm.restartCount < max {
89+
if maxRetryCount := rm.policy.MaximumRetryCount; maxRetryCount == 0 || rm.restartCount < maxRetryCount {
9090
restart = exitCode != 0
9191
}
9292
}

0 commit comments

Comments
 (0)