@cryptotaxi247 / kubo / commits / e68b73b54

coreapi: dag review

License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com> This commit was moved from ipfs/interface-go-ipfs-core@20fa7a599e839af20bef873f12fcc2f94fd0c529 This commit was moved from ipfs/boxo@bae5f5303ec03d6399c3345ba6c14397812b1ead

Łukasz Magiera committed Dec 21, 2017 at 01:56 UTC e68b73b54ed06fc8b078bc4866efe1653f6dae4c
1 file changed +3 -2
core/coreiface/interface.go
+3 -2
@@ -61,8 +61,9 @@ type UnixfsAPI interface {
61 // DagAPI specifies the interface to IPLD
62 type DagAPI interface {
63 // Put inserts data using specified format and input encoding.
64 - // If format is not specified (nil), default dag-cbor/sha256 is used
65 - Put(ctx context.Context, src io.Reader, opts ...options.DagPutOption) ([]Node, error)
64 + // Unless used with WithCodec or WithHash, the defaults "dag-cbor" and
65 + // "sha256" are used.
66 + Put(ctx context.Context, src io.Reader, opts ...options.DagPutOption) (Path, error)
67
68 // WithInputEnc is an option for Put which specifies the input encoding of the
69 // data. Default is "json", most formats/codecs support "raw"