(writer Writer)
| 69 | } |
| 70 | |
| 71 | func (this *WriterPool) Put(writer Writer) { |
| 72 | if writer.IncreaseHit() > maxWriterHits { |
| 73 | // do nothing to discard it |
| 74 | return |
| 75 | } |
| 76 | |
| 77 | select { |
| 78 | case this.c <- writer: |
| 79 | default: |
| 80 | isBusy = true |
| 81 | } |
| 82 | } |
no test coverage detected