Commit 2312cdda authored by Yusef Napora's avatar Yusef Napora Committed by vyzo

add nil check for decayer

parent 51369f75
......@@ -120,6 +120,9 @@ func (t *tagTracer) removeDeliveryTag(topic string) {
}
func (t *tagTracer) decayingDeliveryTag(topic string) (connmgr.DecayingTag, error) {
if t.decayer == nil {
return nil, fmt.Errorf("connection manager does not support decaying tags")
}
name := fmt.Sprintf("pubsub-deliveries:%s", topic)
// decrement tag value by GossipSubConnTagDecayAmount at each decay interval
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment