diff --git a/benchmark.go b/benchmark.go index bbce1fd0a..1a99fa2ff 100644 --- a/benchmark.go +++ b/benchmark.go @@ -226,9 +226,11 @@ func main() { }() } } else { - go func() { - currentNode.JoinShard(leader) - }() + if *peerDisvoery { + go func() { + currentNode.JoinShard(leader) + }() + } } currentNode.StartServer(*port)