coreapi: implement --local with Offline option
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com> This commit was moved from ipfs/interface-go-ipfs-core@286ea29c95a4d398c9a4b08fc5d24494e0c5d7c1 This commit was moved from ipfs/boxo@3b8f8c7c8238d5fbd913ab0fb13f466ec3313e97
Łukasz Magiera committed
Dec 10, 2018 at 15:26 UTC
2230c18f333eb14d63641f437559da445366e42e
1 file changed
-12
core/coreiface/options/unixfs.go
-12
@@ -30,7 +30,6 @@ type UnixfsAddSettings struct {
30
31
Pin bool
32
OnlyHash bool
33
- Local bool
33
FsCache bool
34
NoCopy bool
35
@@ -60,7 +59,6 @@ func UnixfsAddOptions(opts ...UnixfsAddOption) (*UnixfsAddSettings, cid.Prefix,
59
60
Pin: false,
61
OnlyHash: false,
63
- Local: false,
62
FsCache: false,
63
NoCopy: false,
64
@@ -220,16 +218,6 @@ func (unixfsOpts) HashOnly(hashOnly bool) UnixfsAddOption {
218
}
219
}
220
223
-// Local will add the data to blockstore without announcing it to the network
224
-//
225
-// Note that this doesn't prevent other nodes from getting this data
226
-func (unixfsOpts) Local(local bool) UnixfsAddOption {
227
- return func(settings *UnixfsAddSettings) error {
228
- settings.Local = local
229
- return nil
230
- }
231
-}
232
-
221
// Wrap tells the adder to wrap the added file structure with an additional
222
// directory.
223
func (unixfsOpts) Wrap(wrap bool) UnixfsAddOption {