Skip to content

Commit

Permalink
Fix in ServiceBeaconBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
ZarkariaDia committed Dec 5, 2023
1 parent 4c08a83 commit a7d2275
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public IServiceBeacon Build(BuildContext context)
}

var zooKeeperClient = context.ZooKeeperClient;
if (zooKeeperClient == null)
if (zooKeeperClient == null || zooKeeperClient is DevNullZooKeeperClient)
{
context.LogDisabled("ServiceBeacon", "disabled ZooKeeperClient");
return new DevNullServiceBeacon(CreateReplicaInfo(context));
Expand Down

0 comments on commit a7d2275

Please sign in to comment.