hscontrol/state: make NodeStore batch configuration tunable (#2886)
This commit is contained in:
parent
9c4c017eac
commit
db293e0698
11 changed files with 267 additions and 140 deletions
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
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue