Fix flow close reasons
This commit is contained in:
parent
2de01a4c29
commit
dcfbe83ca6
3 changed files with 29 additions and 24 deletions
13
flow.go
13
flow.go
|
|
@ -41,27 +41,16 @@ const (
|
|||
FlowCloseReset FlowCloseReason = iota
|
||||
FlowCloseFinished
|
||||
FlowCloseTimeout
|
||||
FlowCloseEvicted
|
||||
FlowCloseShutdown
|
||||
FlowCloseInterrupted
|
||||
)
|
||||
|
||||
func (r FlowCloseReason) String() string {
|
||||
switch r {
|
||||
case FlowCloseReset:
|
||||
return "connection reset"
|
||||
case FlowCloseFinished:
|
||||
return "finished"
|
||||
case FlowCloseTimeout:
|
||||
return "idle timeout"
|
||||
case FlowCloseEvicted:
|
||||
return "evicted"
|
||||
case FlowCloseShutdown:
|
||||
return "stack closed"
|
||||
case FlowCloseInterrupted:
|
||||
return "interrupted"
|
||||
default:
|
||||
return "unknown"
|
||||
return "connection reset"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue