Skip to content

Commit

Permalink
Take the default configuration for unspecified values (#442)
Browse files Browse the repository at this point in the history
  • Loading branch information
zivkovicmilos committed Mar 9, 2022
1 parent 18a964c commit dde9073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/server/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func readConfigFile(path string) (*Config, error) {
return nil, fmt.Errorf("suffix of %s is neither hcl nor json", path)
}

config := new(Config)
config := DefaultConfig()
config.Network = new(Network)
config.Network.MaxPeers = -1
config.Network.MaxInboundPeers = -1
Expand Down

0 comments on commit dde9073

Please sign in to comment.