Skip to content

Commit

Permalink
fix: monitor rsshub check logic (#631)
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudoyu authored Nov 6, 2024
1 parent 94d45b8 commit 7502016
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions internal/node/monitor/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,20 +115,13 @@ func initNetworkClient(m *config.Module) (Client, error) {
// NewMonitor creates a new monitor instance.
func NewMonitor(_ context.Context, configFile *config.File, databaseClient database.Client, redisClient rueidis.Client, networkParamsCaller *vsl.NetworkParamsCaller, settlementCaller *vsl.SettlementCaller) (*Monitor, error) {
totalModules := len(configFile.Component.Decentralized) + len(configFile.Component.Federated)
if configFile.Component.RSS != nil {
totalModules++
}

modules := make([]*config.Module, 0, totalModules)

modules = append(modules, configFile.Component.Decentralized...)

modules = append(modules, configFile.Component.Federated...)

if configFile.Component.RSS != nil {
modules = append(modules, configFile.Component.RSS)
}

clients := make(map[network.Network]Client)

// init all clients
Expand Down

0 comments on commit 7502016

Please sign in to comment.