swarm/network: disallow historical retrieval requests (#17936)

This commit is contained in:
Elad
2018-10-19 10:50:25 +02:00
committed by Viktor Trón
parent 97fb08342d
commit aeb733623e
5 changed files with 11 additions and 7 deletions

View File

@ -158,6 +158,7 @@ type SubscribeErrorMsg struct {
}
func (p *Peer) handleSubscribeErrorMsg(req *SubscribeErrorMsg) (err error) {
//TODO the error should be channeled to whoever calls the subscribe
return fmt.Errorf("subscribe to peer %s: %v", p.ID(), req.Error)
}