diff --git a/score.go b/score.go index ec6c8213..7b317d7e 100644 --- a/score.go +++ b/score.go @@ -202,13 +202,9 @@ func (ps *peerScore) SetTopicScoreParams(topic string, p *TopicScoreParams) erro ps.Lock() defer ps.Unlock() - old, exist := ps.params.Topics[topic] + old := ps.params.Topics[topic] ps.params.Topics[topic] = p - if !exist { - return nil - } - // check to see if the counter Caps are being lowered; if that's the case we need to recap them recap := false if p.FirstMessageDeliveriesCap < old.FirstMessageDeliveriesCap {