coreapi: drop nameopt.Local in favour of api.Offline
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com> This commit was moved from ipfs/interface-go-ipfs-core@42d3b2edfa9d76d00e9fb2b86f6ab35ee15a0c0d This commit was moved from ipfs/boxo@57bf11c1602f87c424c2b0309d89642ef6d7d0d0
Łukasz Magiera committed
Dec 10, 2018 at 14:31 UTC
322654a45ffaaada90c2237e33212ca83898e6a7
1 file changed
-11
core/coreiface/options/name.go
-11
@@ -20,7 +20,6 @@ type NamePublishSettings struct {
20
}
21
22
type NameResolveSettings struct {
23
- Local bool
23
Cache bool
24
25
ResolveOpts []ropts.ResolveOpt
@@ -49,7 +48,6 @@ func NamePublishOptions(opts ...NamePublishOption) (*NamePublishSettings, error)
48
49
func NameResolveOptions(opts ...NameResolveOption) (*NameResolveSettings, error) {
50
options := &NameResolveSettings{
52
- Local: false,
51
Cache: true,
52
}
53
@@ -106,15 +104,6 @@ func (nameOpts) TTL(ttl time.Duration) NamePublishOption {
104
}
105
}
106
109
-// Local is an option for Name.Resolve which specifies if the lookup should be
110
-// offline. Default value is false
111
-func (nameOpts) Local(local bool) NameResolveOption {
112
- return func(settings *NameResolveSettings) error {
113
- settings.Local = local
114
- return nil
115
- }
116
-}
117
-
107
// Cache is an option for Name.Resolve which specifies if cache should be used.
108
// Default value is true
109
func (nameOpts) Cache(cache bool) NameResolveOption {