fix: Set default Methods value to nil

This commit is contained in:
Antonio Navarro Perez 2022-09-27 17:27:01 +02:00 committed by galargh
parent c4a0656920
commit a92e87a46d

View File

@ -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,
},