chore: fix linter error

This commit is contained in:
Prem Chaitanya Prathi 2023-11-23 14:32:30 +05:30 committed by richΛrd
parent 9510ad0f5d
commit f622265679
3 changed files with 3 additions and 3 deletions

View File

@ -330,7 +330,7 @@ func (b *StatusNode) wakuV2Service(nodeConfig *params.NodeConfig, telemetryServe
DefaultShardPubsubTopic: shard.DefaultShardPubsubTopic(),
UseShardAsDefaultTopic: nodeConfig.WakuV2Config.UseShardAsDefaultTopic,
TelemetryServerURL: telemetryServerURL,
ClusterId: nodeConfig.ClusterConfig.ClusterID,
ClusterID: nodeConfig.ClusterConfig.ClusterID,
}
if nodeConfig.WakuV2Config.MaxMessageSize > 0 {

View File

@ -48,7 +48,7 @@ type Config struct {
EnableFilterFullNode bool `toml:",omitempty"`
DefaultShardPubsubTopic string `toml:",omitempty"`
UseShardAsDefaultTopic bool `toml:",omitempty"`
ClusterId uint16 `toml:",omitempty"`
ClusterID uint16 `toml:",omitempty"`
}
var DefaultConfig = Config{

View File

@ -285,7 +285,7 @@ func New(nodeKey string, fleet string, cfg *Config, logger *zap.Logger, appDB *s
node.WithKeepAlive(time.Duration(cfg.KeepAliveInterval) * time.Second),
node.WithMaxPeerConnections(cfg.DiscoveryLimit),
node.WithLogger(logger),
node.WithClusterID(cfg.ClusterId),
node.WithClusterID(cfg.ClusterID),
}
if cfg.EnableDiscV5 {