Commit d59a6e99 authored by Kevin Atkinson's avatar Kevin Atkinson

Fix "ipfs urlstore add" output.

License: MIT
Signed-off-by: default avatarKevin Atkinson <k@kevina.org>
parent 1a835202
...@@ -77,7 +77,9 @@ var urlAdd = &cmds.Command{ ...@@ -77,7 +77,9 @@ var urlAdd = &cmds.Command{
}, },
Marshalers: cmds.MarshalerMap{ Marshalers: cmds.MarshalerMap{
cmds.Text: func(res cmds.Response) (io.Reader, error) { cmds.Text: func(res cmds.Response) (io.Reader, error) {
bs := res.Output().(*BlockStat) ch := res.Output().(<-chan interface{})
bs0 := <-ch
bs := bs0.(*BlockStat)
return strings.NewReader(bs.Key + "\n"), nil return strings.NewReader(bs.Key + "\n"), nil
}, },
}, },
......
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