Skip to content

Commit 08c3922

Browse files
committed
performance5: buffered view-channels
1 parent 77bf9f1 commit 08c3922

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

overlay/user.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ func NewUserDevice(tunCidr *net.IPNet) (Device, error) {
1818
// these pipes guarantee each write/read will match 1:1
1919
return &UserDevice{
2020
tunCidr: tunCidr,
21-
outboundChannel: make(chan *buffer.View),
22-
inboundChannel: make(chan *buffer.View),
21+
outboundChannel: make(chan *buffer.View, 16),
22+
inboundChannel: make(chan *buffer.View, 16),
2323
}, nil
2424
}
2525

0 commit comments

Comments
 (0)