mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 09:23:48 +00:00
swarm: Fix typo in API and Protocol append
This commit is contained in:
parent
54336890e4
commit
01931c4e8d
1 changed files with 3 additions and 3 deletions
|
|
@ -257,7 +257,7 @@ func (self *Swarm) Protocols() (protos []p2p.Protocol) {
|
||||||
protos = append(protos, self.bzz.Protocols()...)
|
protos = append(protos, self.bzz.Protocols()...)
|
||||||
|
|
||||||
if self.ps != nil {
|
if self.ps != nil {
|
||||||
protos = append(protos, self.ps.Protocols())
|
protos = append(protos, self.ps.Protocols()...)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
@ -318,10 +318,10 @@ func (self *Swarm) APIs() []rpc.API {
|
||||||
// {Namespace, Version, api.NewAdmin(self), false},
|
// {Namespace, Version, api.NewAdmin(self), false},
|
||||||
}
|
}
|
||||||
|
|
||||||
apis = append(apis, self.bzz.APIs())
|
apis = append(apis, self.bzz.APIs()...)
|
||||||
|
|
||||||
if self.ps != nil {
|
if self.ps != nil {
|
||||||
apis = append(apis, self.ps.APIs())
|
apis = append(apis, self.ps.APIs()...)
|
||||||
}
|
}
|
||||||
|
|
||||||
return apis
|
return apis
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue