net_transport.go
func (n *NetworkTransport) setupStreamContext() {
	ctx, cancel := context.WithCancel(context.Background())
	n.streamCtx = ctx
	n.streamCancel = cancel
}
func (n *NetworkTransport) setupStreamContext() {
	ctx, cancel := context.WithCancel(context.Background())
	n.streamCtx = ctx
	n.streamCancel = cancel
}
func ( n * NetworkTransport ) setupStreamContext ( ) { ctx , cancel := context . WithCancel ( context . Background ( ) ) n . streamCtx = ctx n . streamCancel = cancel }
// setupStreamContext is used to create a new stream context. This should be
// called with the stream lock held.
setupStreamContext is used to create a new stream context . This should be called with the stream lock held .