(deps commandDeps)
| 385 | } |
| 386 | |
| 387 | func settingsRestartTimeout(deps commandDeps) time.Duration { |
| 388 | timeout := defaultSettingsRestartTimeout |
| 389 | if deps.startTimeout > 0 && deps.stopTimeout > 0 { |
| 390 | calculated := deps.startTimeout + deps.stopTimeout + (5 * time.Second) |
| 391 | if calculated > timeout { |
| 392 | timeout = calculated |
| 393 | } |
| 394 | } |
| 395 | return timeout |
| 396 | } |
| 397 | |
| 398 | func rollbackAppliedUpdate( |
| 399 | ctx context.Context, |
no outgoing calls