fix: trim host
parent
4387b89026
commit
1b99e59cf7
|
@ -36,7 +36,7 @@ public class ConnectionManager {
|
||||||
/**
|
/**
|
||||||
* free connections
|
* free connections
|
||||||
*/
|
*/
|
||||||
private volatile ConcurrentLinkedQueue<Connection> freeConnections = new ConcurrentLinkedQueue<Connection>();
|
private volatile LinkedList<Connection> freeConnections = new LinkedList<Connection>();
|
||||||
|
|
||||||
private ConnectionManager() {
|
private ConnectionManager() {
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@ public class ConnectionPool {
|
||||||
if (socketAddress == null) {
|
if (socketAddress == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return String.format("%s:%s", socketAddress.getHostName().trim(), socketAddress.getPort());
|
return String.format("%s:%s", socketAddress.getHostName(), socketAddress.getPort());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue