code: func (p *peerConnection) Reset() {
  	p.lock.Lock()
  	defer p.lock.Unlock()
  
  	atomic.StoreInt32(&p.headerIdle, 0)
  	atomic.StoreInt32(&p.blockIdle, 0)
  	atomic.StoreInt32(&p.receiptIdle, 0)
  	atomic.StoreInt32(&p.stateIdle, 0)
  
  	p.headerThroughput = 0
  	p.blockThroughput = 0
  	p.receiptThroughput = 0
  	p.stateThroughput = 0
  
  	p.lacking = make(map[common.Hash]struct{})
  }
docs: // Reset clears the internal state of a peer entity.