[stream] change default values

pull/4049/head
Jacky Wang 3 years ago
parent 6ca07108b4
commit fc94354283
No known key found for this signature in database
GPG Key ID: 1085CE5F4FF5842C
  1. 2
      cmd/harmony/config.go
  2. 2
      cmd/harmony/default.go

@ -95,7 +95,7 @@ func getDefaultDNSSyncConfig(nt nodeconfig.NetworkType) harmonyconfig.DnsSync {
dnsSync.Client = true dnsSync.Client = true
case nodeconfig.Localnet: case nodeconfig.Localnet:
dnsSync.Server = true dnsSync.Server = true
dnsSync.Client = true dnsSync.Client = false
default: default:
dnsSync.Server = true dnsSync.Server = true
dnsSync.Client = false dnsSync.Client = false

@ -150,7 +150,7 @@ var (
defaultLocalNetSyncConfig = harmonyconfig.SyncConfig{ defaultLocalNetSyncConfig = harmonyconfig.SyncConfig{
Enabled: true, Enabled: true,
Downloader: false, Downloader: true,
Concurrency: 4, Concurrency: 4,
MinPeers: 4, MinPeers: 4,
InitStreams: 4, InitStreams: 4,

Loading…
Cancel
Save