func (p *Peer) setTopicInterest(topicInterest []common.TopicType) {
    p.topicInterestMu.Lock()
    defer p.topicInterestMu.Unlock()
    if topicInterest == nil {
        p.topicInterest = nil