Skip to content

Commit a27cf1b

Browse files
committed
p2p: fix vet issue
1 parent 64b397f commit a27cf1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

p2p/message.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func MsgPipe() (*MsgPipeRW, *MsgPipeRW) {
156156
var (
157157
c1, c2 = make(chan Msg), make(chan Msg)
158158
closing = make(chan struct{})
159-
closed atomic.Int32
159+
closed = new(atomic.Int32)
160160
rw1 = &MsgPipeRW{c1, c2, closing, closed}
161161
rw2 = &MsgPipeRW{c2, c1, closing, closed}
162162
)
@@ -172,7 +172,7 @@ type MsgPipeRW struct {
172172
w chan<- Msg
173173
r <-chan Msg
174174
closing chan struct{}
175-
closed atomic.Int32
175+
closed *atomic.Int32
176176
}
177177

178178
// WriteMsg sends a message on the pipe.

0 commit comments

Comments
 (0)