Skip to content

Commit fb45e7b

Browse files
author
Brian Tiger Chow
committed
fix: name
editing in the browser here goes nothing
1 parent c2c95d1 commit fb45e7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/ipfs/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ func (i *cmdInvocation) Run(ctx context.Context) (output io.Reader, err error) {
172172
return res.Reader()
173173
}
174174

175-
func (i *cmdInvocation) nodeFunc(ctx context.Context) func() (*core.IpfsNode, error) {
175+
func (i *cmdInvocation) constructNodeFunc(ctx context.Context) func() (*core.IpfsNode, error) {
176176
return func() (*core.IpfsNode, error) {
177177
if i.req == nil {
178178
return nil, errors.New("constructing node without a request")
@@ -225,7 +225,7 @@ func (i *cmdInvocation) Parse(ctx context.Context, args []string) error {
225225
cmdctx.LoadConfig = loadConfig
226226
// this sets up the function that will initialize the node
227227
// this is so that we can construct the node lazily.
228-
cmdctx.ConstructNode = i.nodeFunc(ctx)
228+
cmdctx.ConstructNode = i.constructNodeFunc(ctx)
229229

230230
// if no encoding was specified by user, default to plaintext encoding
231231
// (if command doesn't support plaintext, use JSON instead)

0 commit comments

Comments
 (0)