Skip to content

Commit 2304d4a

Browse files
authored
fix; remove runtime.Gosched (#1086)
1 parent f6986fb commit 2304d4a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

conn.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"net"
1010
"os"
1111
"path/filepath"
12-
"runtime"
1312
"sync"
1413
"sync/atomic"
1514
"time"
@@ -1419,7 +1418,6 @@ func (c *Conn) waitResponse(d *connDeadline, id int32) (deadline time.Time, size
14191418
// Optimistically release the read lock if a response has already
14201419
// been received but the current operation is not the target for it.
14211420
c.rlock.Unlock()
1422-
runtime.Gosched()
14231421
}
14241422

14251423
c.leave()

0 commit comments

Comments
 (0)