mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-01-02 12:53:09 +00:00
add nil check for decayer
This commit is contained in:
parent
51369f756f
commit
2312cddaff
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user