Skip to content

Commit 35af91f

Browse files
committed
fix deadlock in tests
1 parent cd53ec1 commit 35af91f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/protocol/trx.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type transmission struct {
2525
func NewTransceiver(rw io.ReadWriter) *Transceiver {
2626
result := Transceiver{
2727
rw: rw,
28-
outgoing: make(chan transmission),
28+
outgoing: make(chan transmission, 1),
2929
polling: polling{
3030
tick: time.NewTicker(1 * time.Second),
3131
},

0 commit comments

Comments
 (0)