Skip to content

Commit

Permalink
[grid] Rejig the internals of LocalDistributor
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Sep 29, 2020
1 parent 07899d7 commit fa8b0fa
Showing 1 changed file with 5 additions and 3 deletions.
Expand Up @@ -77,9 +77,8 @@
public class LocalDistributor extends Distributor {

private static final Json JSON = new Json();
private static final Logger LOG = Logger.getLogger("Selenium Distributor (Local)");
private final ReadWriteLock lock = new ReentrantReadWriteLock(/* fair */ true);
private final Set<Host> hosts = new HashSet<>();
private static final Logger LOG = Logger.getLogger(LocalDistributor.class.getName());

private final Tracer tracer;
private final EventBus bus;
private final HttpClient.Factory clientFactory;
Expand All @@ -88,6 +87,9 @@ public class LocalDistributor extends Distributor {
private final Multimap<NodeId, Runnable> allChecks = HashMultimap.create();
private final Secret registrationSecret;

private final ReadWriteLock lock = new ReentrantReadWriteLock(/* fair */ true);
private final Set<Host> hosts = new HashSet<>();

public LocalDistributor(
Tracer tracer,
EventBus bus,
Expand Down

0 comments on commit fa8b0fa

Please sign in to comment.