mirror of
https://github.com/happyfish100/fastdfs-client-java.git
synced 2026-09-20 20:52:55 +00:00
ConnectionPool.getKey() use '-' instead of ':'
This commit is contained in:
@@ -43,7 +43,6 @@ public class ConnectionPool {
|
||||
} else {
|
||||
connection.closeDirectly();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static void closeConnection(Connection connection) throws IOException {
|
||||
@@ -64,7 +63,7 @@ public class ConnectionPool {
|
||||
if (socketAddress == null) {
|
||||
return null;
|
||||
}
|
||||
return String.format("%s:%s", socketAddress.getAddress().getHostAddress(), socketAddress.getPort());
|
||||
return String.format("%s-%s", socketAddress.getAddress().getHostAddress(), socketAddress.getPort());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user