kickFlusher will send a bool on a channel to kick the flush Go routine to flush data to the server.
()
| 4215 | // kickFlusher will send a bool on a channel to kick the |
| 4216 | // flush Go routine to flush data to the server. |
| 4217 | func (nc *Conn) kickFlusher() { |
| 4218 | if nc.bw != nil { |
| 4219 | select { |
| 4220 | case nc.fch <- struct{}{}: |
| 4221 | default: |
| 4222 | } |
| 4223 | } |
| 4224 | } |
| 4225 | |
| 4226 | // Publish publishes the data argument to the given subject. The data |
| 4227 | // argument is left untouched and needs to be correctly interpreted on |
no outgoing calls
no test coverage detected