Skip to content

Commit

Permalink
remove unnecessary default value
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonardo Hahn committed Nov 12, 2019
1 parent 3f63cba commit 1dd7a3d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cluster/etcd_service_discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@ func (sd *etcdServiceDiscovery) configure() {
sd.serverTypesBlacklist = sd.config.GetStringSlice("pitaya.cluster.sd.etcd.servertypeblacklist")
sd.syncServersParallelism = sd.config.GetInt("pitaya.cluster.sd.etcd.syncserversparallelism")

if sd.syncServersParallelism == 0 {
sd.syncServersParallelism = 10
}

if len(sd.serverTypesBlacklist) > 0 {
logger.Log.Warnf("using server types blacklist: %s", sd.serverTypesBlacklist)
}
Expand Down

0 comments on commit 1dd7a3d

Please sign in to comment.