8000 Dynamically resolve db host · qza/postgres-async-driver@626fcea · GitHub
[go: up one dir, main page]

Skip to content

Commit 626fcea

Browse files
Jacek SokolJacek Sokol
authored andcommitted
Dynamically resolve db host
1 parent df6446f commit 626fcea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/github/pgasync/impl/PgConnectionPool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public abstract class PgConnectionPool implements ConnectionPool {
6262
final boolean pipeline;
6363

6464
public PgConnectionPool(PoolProperties properties) {
65-
this.address = new InetSocketAddress(properties.getHostname(), properties.getPort());
65+
this.address = InetSocketAddress.createUnresolved(properties.getHostname(), properties.getPort());
6666
this.username = properties.getUsername();
6767
this.password = properties.getPassword();
6868
this.database = properties.getDatabase();

0 commit comments

Comments
 (0)
0