conn: inch BatchSize toward being non-dynamic
There's not really a use at the moment for making this configurable, and once bind_windows.go behaves like bind_std.go, we'll be able to use constants everywhere. So begin that simplification now. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
f26efb65f2
commit
dbd949307e
8 changed files with 19 additions and 23 deletions
|
|
@ -10,7 +10,7 @@ import "golang.zx2c4.com/wireguard/conn"
|
|||
/* Reduce memory consumption for Android */
|
||||
|
||||
const (
|
||||
QueueStagedSize = conn.DefaultBatchSize
|
||||
QueueStagedSize = conn.IdealBatchSize
|
||||
QueueOutboundSize = 1024
|
||||
QueueInboundSize = 1024
|
||||
QueueHandshakeSize = 1024
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ package device
|
|||
import "golang.zx2c4.com/wireguard/conn"
|
||||
|
||||
const (
|
||||
QueueStagedSize = conn.DefaultBatchSize
|
||||
QueueStagedSize = conn.IdealBatchSize
|
||||
QueueOutboundSize = 1024
|
||||
QueueInboundSize = 1024
|
||||
QueueHandshakeSize = 1024
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue