From 01931c4e8dcec0865d34fc7aa145ca98b2084089 Mon Sep 17 00:00:00 2001 From: lash Date: Tue, 16 Jan 2018 03:00:00 +0100 Subject: [PATCH] swarm: Fix typo in API and Protocol append --- swarm/swarm.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/swarm/swarm.go b/swarm/swarm.go index c47857093b..14826bb021 100644 --- a/swarm/swarm.go +++ b/swarm/swarm.go @@ -257,7 +257,7 @@ func (self *Swarm) Protocols() (protos []p2p.Protocol) { protos = append(protos, self.bzz.Protocols()...) if self.ps != nil { - protos = append(protos, self.ps.Protocols()) + protos = append(protos, self.ps.Protocols()...) } return } @@ -318,10 +318,10 @@ func (self *Swarm) APIs() []rpc.API { // {Namespace, Version, api.NewAdmin(self), false}, } - apis = append(apis, self.bzz.APIs()) + apis = append(apis, self.bzz.APIs()...) if self.ps != nil { - apis = append(apis, self.ps.APIs()) + apis = append(apis, self.ps.APIs()...) } return apis