Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions driver/src/main/java/org/neo4j/driver/internal/BaseDriver.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@

package org.neo4j.driver.internal;

import java.util.Set;

import org.neo4j.driver.internal.net.BoltServerAddress;
import org.neo4j.driver.internal.security.SecurityPlan;
import org.neo4j.driver.internal.spi.ConnectionPool;
import org.neo4j.driver.v1.Driver;
import org.neo4j.driver.v1.Logger;
import org.neo4j.driver.v1.Logging;
Expand All @@ -33,12 +29,9 @@ abstract class BaseDriver implements Driver
{
private final SecurityPlan securityPlan;
protected final Logger log;
protected final ConnectionPool connections;

BaseDriver( ConnectionPool connections, BoltServerAddress address, SecurityPlan securityPlan, Logging logging )
BaseDriver( SecurityPlan securityPlan, Logging logging )
{
this.connections = connections;
this.connections.add( address );
this.securityPlan = securityPlan;
this.log = logging.getLog( Session.LOG_NAME );
}
Expand All @@ -49,9 +42,4 @@ public boolean isEncrypted()
return securityPlan.requiresEncryption();
}

//Used for testing
Set<BoltServerAddress> servers()
{
return connections.addresses();
}
}
Loading