mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-27 21:37:57 +08:00
fix: Set default Methods value to nil
This commit is contained in:
parent
c4a0656920
commit
a92e87a46d
@ -48,14 +48,8 @@ func InitWithIdentity(identity Identity) (*Config, error) {
|
||||
},
|
||||
|
||||
Routing: Routing{
|
||||
Type: "dht",
|
||||
Methods: Methods{
|
||||
MethodNameFindPeers: Method{},
|
||||
MethodNameFindProviders: Method{},
|
||||
MethodNameGetIPNS: Method{},
|
||||
MethodNameProvide: Method{},
|
||||
MethodNamePutIPNS: Method{},
|
||||
},
|
||||
Type: "dht",
|
||||
Methods: nil,
|
||||
Routers: nil,
|
||||
},
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user