swarm: remove double swarm protocol in protocols

This commit is contained in:
Janos Guljas 2018-04-25 13:21:51 +02:00
parent 0f3dc214e4
commit 458dd1a7b6

View file

@ -449,9 +449,6 @@ func (self *Swarm) Protocols() (protos []p2p.Protocol) {
if self.ps != nil { if self.ps != nil {
protos = append(protos, self.ps.Protocols()...) protos = append(protos, self.ps.Protocols()...)
} }
if self.streamer != nil {
protos = append(protos, self.streamer.Protocols()...)
}
return return
} }