@cryptotaxi247 / kubo / commits / 0e0136100

fix: Set default Methods value to nil

Antonio Navarro Perez committed Sep 27, 2022 at 17:27 UTC 0e0136100ed8aaea6c27c89c9b73471f542d8c1d
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