Skip to content

Commit

Permalink
fix: Set default Methods value to nil
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnavarro committed Sep 27, 2022
1 parent 8831363 commit 0e01361
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions config/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},

Expand Down

0 comments on commit 0e01361

Please sign in to comment.