Skip to content

Commit

Permalink
performance5: buffered view-channels
Browse files Browse the repository at this point in the history
  • Loading branch information
cre4ture committed Jul 30, 2024
1 parent 77bf9f1 commit 08c3922
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions overlay/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ func NewUserDevice(tunCidr *net.IPNet) (Device, error) {
// these pipes guarantee each write/read will match 1:1
return &UserDevice{
tunCidr: tunCidr,
outboundChannel: make(chan *buffer.View),
inboundChannel: make(chan *buffer.View),
outboundChannel: make(chan *buffer.View, 16),
inboundChannel: make(chan *buffer.View, 16),
}, nil
}

Expand Down

0 comments on commit 08c3922

Please sign in to comment.