(session Session)
| 163 | } |
| 164 | |
| 165 | func (spool *SessionPool) PutBack(session Session) { |
| 166 | defer func() { |
| 167 | if r := recover(); r != nil { |
| 168 | session.Close() |
| 169 | } |
| 170 | }() |
| 171 | if session.trans != nil && session.trans.IsOpen() { |
| 172 | spool.ch <- session |
| 173 | } |
| 174 | <-spool.sem |
| 175 | } |
| 176 | |
| 177 | func (spool *SessionPool) dropSession(session Session) { |
| 178 | defer func() { |
no test coverage detected