| 1 | package control |
| 2 | |
| 3 | import "errors" |
| 4 | |
| 5 | // IsSessionRotationBusy distinguishes transient session conflicts from |
| 6 | // failures so HTTP clients can receive a retryable 409. |
| 7 | func IsSessionRotationBusy(err error) bool { |
| 8 | return errors.Is(err, errTurnRunningRotation) || errors.Is(err, errRotationInProgress) |
| 9 | } |
| 10 |