返回 DeepSeek-Reasonix
session_rotation.go
根目录 / internal / control / session_rotation.go
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
10 lines GO