@cryptotaxi247 / kubo / commits / d0f9be56e

refac(core) privatize method

Brian Tiger Chow committed Jan 28, 2015 at 04:06 UTC d0f9be56e7e05ba194e80d28c4d1d028d46f4bfb
1 file changed +2 -2
core/core.go
+2 -2
@@ -203,7 +203,7 @@ func standardWithRouting(r repo.Repo, online bool, maybeRouter routing.IpfsRouti
203 }
204
205 if online {
206 - if err := n.StartOnlineServices(ctx, maybeRouter); err != nil {
206 + if err := n.startOnlineServices(ctx, maybeRouter); err != nil {
207 return nil, err
208 }
209 } else {
@@ -215,7 +215,7 @@ func standardWithRouting(r repo.Repo, online bool, maybeRouter routing.IpfsRouti
215 }
216 }
217
218 -func (n *IpfsNode) StartOnlineServices(ctx context.Context, maybeRouter routing.IpfsRouting) error {
218 +func (n *IpfsNode) startOnlineServices(ctx context.Context, maybeRouter routing.IpfsRouting) error {
219
220 if n.PeerHost != nil { // already online.
221 return debugerror.New("node already online")