1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-19 18:05:32 +08:00

core/commands: Made add command output a channel

core/commands: Don't use pointers for Type field
This commit is contained in:
Matt Bell
2015-01-06 11:36:18 -08:00
parent 69999bd0a7
commit 6236ef7fdb
17 changed files with 23 additions and 23 deletions

View File

@ -123,7 +123,7 @@ It reads from stdin, and <key> is a base58 encoded multihash.
Length: len(data),
}, nil
},
Type: &Block{},
Type: Block{},
Marshalers: cmds.MarshalerMap{
cmds.Text: func(res cmds.Response) (io.Reader, error) {
block := res.Output().(*Block)