mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-29 05:18:48 -05:00
hscontrol/state: make NodeStore batch configuration tunable (#2886)
This commit is contained in:
12
hscontrol/state/test_helpers.go
Normal file
12
hscontrol/state/test_helpers.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package state
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// Test configuration for NodeStore batching.
|
||||
// These values are optimized for test speed rather than production use.
|
||||
const (
|
||||
TestBatchSize = 5
|
||||
TestBatchTimeout = 5 * time.Millisecond
|
||||
)
|
||||
Reference in New Issue
Block a user