CloseOnPutReason returns a non-empty reason when the connection should be removed instead of pooled on Put.
()
| 450 | // CloseOnPutReason returns a non-empty reason when the connection should be |
| 451 | // removed instead of pooled on Put. |
| 452 | func (cn *Conn) CloseOnPutReason() string { |
| 453 | return cn.closeOnPutReason.Load() |
| 454 | } |
| 455 | |
| 456 | // IsPubSub returns true if the connection is used for PubSub. |
| 457 | func (cn *Conn) IsPubSub() bool { |
no test coverage detected