Skip to content
3 changes: 2 additions & 1 deletion cmd/bench/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ func startNode(id, seedGossipAddr string) cacheNode {
go node.StartGossipListener(n)
go node.StartGossipPinger(n,
node.WithPeriod(50*time.Millisecond),
node.WithTimeout(50*time.Millisecond),
node.WithPingTimeout(50*time.Millisecond),
node.WithSuspectedTimeout(150*time.Millisecond),
)
if seedGossipAddr != "" {
go n.ConnectToCluster(seedGossipAddr, 50*time.Millisecond)
Expand Down
3 changes: 2 additions & 1 deletion cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ func main() {
go node.StartGossipPinger(
n,
node.WithPeriod(200*time.Millisecond),
node.WithTimeout(100*time.Millisecond),
node.WithPingTimeout(100*time.Millisecond),
node.WithSuspectedTimeout(600*time.Millisecond),
)
default:
slog.Info("DISCOVERY must be set.")
Expand Down
Loading
Loading