fix: name
editing in the browser here goes nothing
Brian Tiger Chow committed
Dec 9, 2014 at 15:27 UTC
fb45e7b7fb3255031f50977e34175a1cf740d809
1 file changed
+2
-2
cmd/ipfs/main.go
+2
-2
@@ -172,7 +172,7 @@ func (i *cmdInvocation) Run(ctx context.Context) (output io.Reader, err error) {
172
return res.Reader()
173
}
174
175
-func (i *cmdInvocation) nodeFunc(ctx context.Context) func() (*core.IpfsNode, error) {
175
+func (i *cmdInvocation) constructNodeFunc(ctx context.Context) func() (*core.IpfsNode, error) {
176
return func() (*core.IpfsNode, error) {
177
if i.req == nil {
178
return nil, errors.New("constructing node without a request")
@@ -225,7 +225,7 @@ func (i *cmdInvocation) Parse(ctx context.Context, args []string) error {
225
cmdctx.LoadConfig = loadConfig
226
// this sets up the function that will initialize the node
227
// this is so that we can construct the node lazily.
228
- cmdctx.ConstructNode = i.nodeFunc(ctx)
228
+ cmdctx.ConstructNode = i.constructNodeFunc(ctx)
229
230
// if no encoding was specified by user, default to plaintext encoding
231
// (if command doesn't support plaintext, use JSON instead)