swarm: enable stream api

This commit is contained in:
Anton Evangelatov 2019-03-14 14:48:48 +01:00
parent 03d0d2633b
commit 6df2cad221
2 changed files with 3 additions and 1 deletions

View file

@ -910,7 +910,7 @@ func (r *Registry) APIs() []rpc.API {
Namespace: "stream",
Version: "3.0",
Service: r.api,
Public: true,
Public: false,
},
}
}

View file

@ -522,6 +522,8 @@ func (s *Swarm) APIs() []rpc.API {
apis = append(apis, s.bzz.APIs()...)
apis = append(apis, s.streamer.APIs()...)
if s.ps != nil {
apis = append(apis, s.ps.APIs()...)
}