multi: make SubBatchDelay configurable

This commit adds a new config option `--gossip.sub-batch-delay` so we
can speed up our itest.
This commit is contained in:
yyforyongyu
2023-02-02 23:02:53 +08:00
parent c6c218f384
commit c3d1d3c4f1
6 changed files with 16 additions and 1 deletions

View File

@@ -1013,7 +1013,7 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
HistoricalSyncTicker: ticker.New(cfg.HistoricalSyncInterval),
NumActiveSyncers: cfg.NumGraphSyncPeers,
MinimumBatchSize: 10,
SubBatchDelay: time.Second * 5,
SubBatchDelay: cfg.Gossip.SubBatchDelay,
IgnoreHistoricalFilters: cfg.IgnoreHistoricalGossipFilters,
PinnedSyncers: cfg.Gossip.PinnedSyncers,
MaxChannelUpdateBurst: cfg.Gossip.MaxChannelUpdateBurst,