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:
@ -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)
|
||||
|
Reference in New Issue
Block a user