@cryptotaxi247 / kubo / commits / a92e87a46

fix: Set default Methods value to nil

Antonio Navarro Perez committed Sep 27, 2022 at 17:27 UTC a92e87a46d2f45fca8b049e719348f17f6a3fca1
1 file changed +2 -8
config/init.go
+2 -8
@@ -48,14 +48,8 @@ func InitWithIdentity(identity Identity) (*Config, error) {
48 },
49
50 Routing: Routing{
51 - Type: "dht",
52 - Methods: Methods{
53 - MethodNameFindPeers: Method{},
54 - MethodNameFindProviders: Method{},
55 - MethodNameGetIPNS: Method{},
56 - MethodNameProvide: Method{},
57 - MethodNamePutIPNS: Method{},
58 - },
51 + Type: "dht",
52 + Methods: nil,
53 Routers: nil,
54 },
55