mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-10 18:57:57 +08:00
block: Pin option
This commit was moved from ipfs/go-ipfs-http-client@def66919df
This commit is contained in:
parent
b7e258cc10
commit
c3f2970f8a
@ -53,6 +53,7 @@ func (api *BlockAPI) Put(ctx context.Context, r io.Reader, opts ...caopts.BlockP
|
||||
Option("mhtype", mht).
|
||||
Option("mhlen", options.MhLength).
|
||||
Option("format", options.Codec).
|
||||
Option("pin", options.Pin).
|
||||
FileBody(r)
|
||||
|
||||
var out blockStat
|
||||
|
||||
Loading…
Reference in New Issue
Block a user