graph: rename routerStats to builderStats

This logic used to be handled by the router. Update to reflect new
owner.
This commit is contained in:
Elle Mouton
2025-02-05 09:54:22 +02:00
parent d757b3bcfc
commit 6169b47d65
2 changed files with 12 additions and 12 deletions

View File

@ -153,7 +153,7 @@ type Builder struct {
// stats tracks newly processed channels, updates, and node
// announcements over a window of defaultStatInterval.
stats *routerStats
stats *builderStats
quit chan struct{}
wg sync.WaitGroup
@ -171,7 +171,7 @@ func NewBuilder(cfg *Config) (*Builder, error) {
ntfnClientUpdates: make(chan *topologyClientUpdate),
channelEdgeMtx: multimutex.NewMutex[uint64](),
statTicker: ticker.New(defaultStatInterval),
stats: new(routerStats),
stats: new(builderStats),
quit: make(chan struct{}),
}, nil
}