ipfs block stat bugfix: cast

This commit is contained in:
Juan Batiz-Benet 2015-01-07 06:26:34 -08:00
parent ce7ad2e26d
commit 8307572777

View File

@ -224,7 +224,7 @@ var objectStatCmd = &cmds.Command{
Type: dag.NodeStat{},
Marshalers: cmds.MarshalerMap{
cmds.Text: func(res cmds.Response) (io.Reader, error) {
ns := res.Output().(dag.NodeStat)
ns := res.Output().(*dag.NodeStat)
var buf bytes.Buffer
w := func(s string, n int) {