Skip to content

Commit a4fc737

Browse files
committed
multi: wire up gossip filter concurrency config
In this commit, we complete the integration of the configurable gossip filter concurrency by wiring the new FilterConcurrency configuration through all layers of the application. The changes connect the gossip.filter-concurrency configuration option from the command-line interface through the server initialization code to the gossiper and sync manager. This ensures that operators can actually use the new configuration option to tune their node's concurrent gossip filter processing capacity based on their specific requirements and available resources.
1 parent 0c46412 commit a4fc737

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,7 @@ func DefaultConfig() Config {
719719
AnnouncementConf: discovery.DefaultProofMatureDelta,
720720
MsgRateBytes: discovery.DefaultMsgBytesPerSecond,
721721
MsgBurstBytes: discovery.DefaultMsgBytesBurst,
722+
FilterConcurrency: discovery.DefaultFilterConcurrency,
722723
},
723724
Invoices: &lncfg.Invoices{
724725
HoldExpiryDelta: lncfg.DefaultHoldInvoiceExpiryDelta,

server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,6 +1225,7 @@ func newServer(ctx context.Context, cfg *Config, listenAddrs []net.Addr,
12251225
AssumeChannelValid: cfg.Routing.AssumeChannelValid,
12261226
MsgRateBytes: cfg.Gossip.MsgRateBytes,
12271227
MsgBurstBytes: cfg.Gossip.MsgBurstBytes,
1228+
FilterConcurrency: cfg.Gossip.FilterConcurrency,
12281229
}, nodeKeyDesc)
12291230

12301231
accessCfg := &accessManConfig{

0 commit comments

Comments
 (0)