()
| 86 | } |
| 87 | |
| 88 | func (mw *msgWriter) flateContextTakeover() bool { |
| 89 | if mw.c.client { |
| 90 | return !mw.c.copts.clientNoContextTakeover |
| 91 | } |
| 92 | return !mw.c.copts.serverNoContextTakeover |
| 93 | } |
| 94 | |
| 95 | func (c *Conn) writer(ctx context.Context, typ MessageType) (io.WriteCloser, error) { |
| 96 | err := c.msgWriter.reset(ctx, typ) |
no outgoing calls
no test coverage detected