Skip to content

Commit

Permalink
fix(link): early use of new listen buf
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Aug 11, 2024
1 parent 9942ef2 commit dfc9f1a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gold/link/listen.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,9 @@ func (m *Me) listen() (conn p2p.Conn, err error) {
q := make(listenqueue, n)
defer close(q)
go q.listen(m, hasntfinished)
i := uint(0)
for {
usenewbuf := false
i %= n
i := uint(0)
for !hasntfinished[i].TryLock() {
i++
i %= n
Expand Down

0 comments on commit dfc9f1a

Please sign in to comment.