From dbd949307e75bbd72d86e53aa57b74b20daab04d Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sat, 4 Mar 2023 15:25:46 +0100 Subject: 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 --- device/queueconstants_android.go | 2 +- device/queueconstants_default.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'device') diff --git a/device/queueconstants_android.go b/device/queueconstants_android.go index 1158387..3d80ead 100644 --- a/device/queueconstants_android.go +++ b/device/queueconstants_android.go @@ -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 diff --git a/device/queueconstants_default.go b/device/queueconstants_default.go index 7ed70a1..ea763d0 100644 --- a/device/queueconstants_default.go +++ b/device/queueconstants_default.go @@ -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 -- cgit v1.2.3