Skip to content

Commit

Permalink
Increase channel size
Browse files Browse the repository at this point in the history
  • Loading branch information
boecklim committed Mar 19, 2024
1 parent ca9e440 commit 15c3f22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,9 @@ func (p *Peer) readRetry(r io.Reader, pver uint32, bsvnet wire.BitcoinNet) (wire
}

func (p *Peer) startReadHandler() {
p.quitReadHandler = make(chan struct{})
p.quitReadHandler = make(chan struct{}, 10)

p.logger.Info("starting read handler")
go func() {

readConn := p.readConn
Expand Down
2 changes: 1 addition & 1 deletion peer_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func TestNewPeer(t *testing.T) {

peer, err := NewPeer(logger, "localhost:18333", peerHandler, wire.TestNet)
require.NoError(t, err)

defer peer.Shutdown()
time.Sleep(5 * time.Second)

require.True(t, peer.Connected())
Expand Down

0 comments on commit 15c3f22

Please sign in to comment.