Commit d0f9be56 authored by Brian Tiger Chow's avatar Brian Tiger Chow

refac(core) privatize method

parent aefdda9c
......@@ -203,7 +203,7 @@ func standardWithRouting(r repo.Repo, online bool, maybeRouter routing.IpfsRouti
}
if online {
if err := n.StartOnlineServices(ctx, maybeRouter); err != nil {
if err := n.startOnlineServices(ctx, maybeRouter); err != nil {
return nil, err
}
} else {
......@@ -215,7 +215,7 @@ func standardWithRouting(r repo.Repo, online bool, maybeRouter routing.IpfsRouti
}
}
func (n *IpfsNode) StartOnlineServices(ctx context.Context, maybeRouter routing.IpfsRouting) error {
func (n *IpfsNode) startOnlineServices(ctx context.Context, maybeRouter routing.IpfsRouting) error {
if n.PeerHost != nil { // already online.
return debugerror.New("node already online")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment