Skip to content

Commit

Permalink
Fix more empty string checks. (hypermodeinc#5396)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmr authored and dna2github committed Jul 18, 2020
1 parent e2adce6 commit 6dde75f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func groups() *groupi {
func StartRaftNodes(walStore *badger.DB, bindall bool) {
gr.ctx, gr.cancel = context.WithCancel(context.Background())

if len(x.WorkerConfig.MyAddr) == 0 {
if x.WorkerConfig.MyAddr == "" {
x.WorkerConfig.MyAddr = fmt.Sprintf("localhost:%d", workerPort())
} else {
// check if address is valid or not
Expand Down

0 comments on commit 6dde75f

Please sign in to comment.