Skip to content

Commit

Permalink
fix; remove runtime.Gosched (#1086)
Browse files Browse the repository at this point in the history
  • Loading branch information
sejin-P authored Mar 10, 2023
1 parent f6986fb commit 2304d4a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"net"
"os"
"path/filepath"
"runtime"
"sync"
"sync/atomic"
"time"
Expand Down Expand Up @@ -1419,7 +1418,6 @@ func (c *Conn) waitResponse(d *connDeadline, id int32) (deadline time.Time, size
// Optimistically release the read lock if a response has already
// been received but the current operation is not the target for it.
c.rlock.Unlock()
runtime.Gosched()
}

c.leave()
Expand Down

0 comments on commit 2304d4a

Please sign in to comment.