more typo
This commit is contained in:
@ -234,7 +234,7 @@ func (t *http2Client) NewStream(ctx context.Context, callHdr *CallHdr) (_ *Strea
|
|||||||
timeout = dl.Sub(time.Now())
|
timeout = dl.Sub(time.Now())
|
||||||
}
|
}
|
||||||
select {
|
select {
|
||||||
case ctx.Done():
|
case <-ctx.Done():
|
||||||
return nil, ContextErr(ctx.Err())
|
return nil, ContextErr(ctx.Err())
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
@ -519,7 +519,7 @@ func (t *http2Client) Write(s *Stream, data []byte, opts *Options) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
select {
|
select {
|
||||||
case s.ctx.Done():
|
case <-s.ctx.Done():
|
||||||
t.sendQuotaPool.add(len(p))
|
t.sendQuotaPool.add(len(p))
|
||||||
if t.framer.adjustNumWriters(-1) == 0 {
|
if t.framer.adjustNumWriters(-1) == 0 {
|
||||||
t.controlBuf.put(&flushIO{})
|
t.controlBuf.put(&flushIO{})
|
||||||
|
@ -601,7 +601,7 @@ func (t *http2Server) Write(s *Stream, data []byte, opts *Options) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
select {
|
select {
|
||||||
case s.ctx.Done():
|
case <-s.ctx.Done():
|
||||||
t.sendQuotaPool.add(ps)
|
t.sendQuotaPool.add(ps)
|
||||||
if t.framer.adjustNumWriters(-1) == 0 {
|
if t.framer.adjustNumWriters(-1) == 0 {
|
||||||
t.controlBuf.put(&flushIO{})
|
t.controlBuf.put(&flushIO{})
|
||||||
|
Reference in New Issue
Block a user