@cryptotaxi247 / kubo / commits / 7475c9a24

block cmd: use coreapi

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

Łukasz Magiera committed Aug 2, 2018 at 09:48 UTC 7475c9a2465004489a6f1382a087127b5576c9b2
1 file changed +1 -1
core/coreiface/block.go
+1 -1
@@ -19,7 +19,7 @@ type BlockStat interface {
19 // BlockAPI specifies the interface to the block layer
20 type BlockAPI interface {
21 // Put imports raw block data, hashing it using specified settings.
22 - Put(context.Context, io.Reader, ...options.BlockPutOption) (ResolvedPath, error)
22 + Put(context.Context, io.Reader, ...options.BlockPutOption) (BlockStat, error)
23
24 // Get attempts to resolve the path and return a reader for data in the block
25 Get(context.Context, Path) (io.Reader, error)