Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
  • Loading branch information
magik6k committed Oct 30, 2018
1 parent 7508881 commit bfffaf0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/commands/dag/dag.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ format.
}
out = final
}
return res.Emit(&out)
return cmds.EmitOnce(res, &out)
},
}

Expand Down Expand Up @@ -219,7 +219,7 @@ var DagResolveCmd = &cmds.Command{
return err
}

return res.Emit(&ResolveOutput{
return cmds.EmitOnce(res, &ResolveOutput{
Cid: lastCid,
RemPath: path.Join(rem),
})
Expand Down
2 changes: 1 addition & 1 deletion core/commands/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ The resolver can recursively resolve:
if err != nil {
return err
}
return res.Emit(&ncmd.ResolvedPath{Path: output})
return cmds.EmitOnce(res, &ncmd.ResolvedPath{Path: output})
},
Encoders: cmds.EncoderMap{
cmds.Text: cmds.MakeTypedEncoder(func(req *cmds.Request, w io.Writer, out *ncmd.ResolvedPath) error {
Expand Down
2 changes: 1 addition & 1 deletion core/commands/pin.go
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ func pinLsKeys(ctx context.Context, args []string, typeStr string, n *core.IpfsN
default:
pinType = "indirect through " + pinType
}
keys[c.String()] = RefKeyObject{
keys[c.Cid().String()] = RefKeyObject{
Type: pinType,
}
}
Expand Down

0 comments on commit bfffaf0

Please sign in to comment.