From f8f6e289853890efbaa5ffd254faf57162532c69 Mon Sep 17 00:00:00 2001 From: vyzo Date: Wed, 29 Apr 2020 19:01:45 +0300 Subject: [PATCH] fix linter complaint --- node/modules/lp2p/pubsub.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/modules/lp2p/pubsub.go b/node/modules/lp2p/pubsub.go index 63d61219e..614cd4129 100644 --- a/node/modules/lp2p/pubsub.go +++ b/node/modules/lp2p/pubsub.go @@ -85,7 +85,7 @@ func GossipSub(pubsubOptions ...PubsubOpt) interface{} { // topic parameters Topics: map[string]*pubsub.TopicScoreParams{ - build.BlocksTopic(nn): &pubsub.TopicScoreParams{ + build.BlocksTopic(nn): { // expected 10 blocks/min TopicWeight: 0.1, // max is 250, max mesh penalty is -10, single invalid message is -100 @@ -115,7 +115,7 @@ func GossipSub(pubsubOptions ...PubsubOpt) interface{} { InvalidMessageDeliveriesWeight: -1000, InvalidMessageDeliveriesDecay: 0.99972, }, - build.MessagesTopic(nn): &pubsub.TopicScoreParams{ + build.MessagesTopic(nn): { // expected > 1 tx/second TopicWeight: 0.05, // max is 50, max mesh penalty is -5, single invalid message is -50