Skip to content

Commit

Permalink
Make acceptChan buffered
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkren committed Jul 21, 2019
1 parent 96cb88e commit e3984d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/app/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func TestAppAccept(t *testing.T) {
lpk, _ := cipher.GenerateKeyPair()
rpk, _ := cipher.GenerateKeyPair()
in, out := net.Pipe()
app := &App{proto: NewProtocol(in), acceptChan: make(chan [2]routing.Addr), conns: make(map[routing.Loop]io.ReadWriteCloser)}
app := &App{proto: NewProtocol(in), acceptChan: make(chan [2]routing.Addr, 2), conns: make(map[routing.Loop]io.ReadWriteCloser)}
go app.handleProto()

proto := NewProtocol(out)
Expand Down

0 comments on commit e3984d6

Please sign in to comment.