()
| 127 | } |
| 128 | |
| 129 | func (s *ClientStream) waitOnHeader() { |
| 130 | select { |
| 131 | case <-s.ctx.Done(): |
| 132 | // Close the stream to prevent headers/trailers from changing after |
| 133 | // this function returns. |
| 134 | s.Close(ContextErr(s.ctx.Err())) |
| 135 | // headerChan could possibly not be closed yet if closeStream raced |
| 136 | // with operateHeaders; wait until it is closed explicitly here. |
| 137 | <-s.headerChan |
| 138 | case <-s.headerChan: |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | // RecvCompress returns the compression algorithm applied to the inbound |
| 143 | // message. It is empty string if there is no compression applied. |
no test coverage detected