(done <-chan struct{})
| 325 | } |
| 326 | |
| 327 | func newControlBuffer(done <-chan struct{}) *controlBuffer { |
| 328 | return &controlBuffer{ |
| 329 | wakeupCh: make(chan struct{}, 1), |
| 330 | list: &itemList{}, |
| 331 | done: done, |
| 332 | } |
| 333 | } |
| 334 | |
| 335 | // throttle blocks if there are too many frames in the control buf that |
| 336 | // represent the response of an action initiated by the peer, like |
no outgoing calls