Skip to content

Commit

Permalink
Prefer duration.toSeconds() over duration.getSeconds()
Browse files Browse the repository at this point in the history
  • Loading branch information
usmansaleem committed Dec 2, 2024
1 parent ec66534 commit 3228488
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
public class DbConnection {
// https://jdbc.postgresql.org/documentation/head/connect.html#connection-parameters
private static final String PG_SOCKET_TIMEOUT_PARAM = "socketTimeout";
static final long DEFAULT_PG_SOCKET_TIMEOUT_SECONDS = Duration.ofMinutes(5).getSeconds();
static final long DEFAULT_PG_SOCKET_TIMEOUT_SECONDS = Duration.ofMinutes(5).toSeconds();

public static Jdbi createConnection(
final String jdbcUrl,
Expand Down

0 comments on commit 3228488

Please sign in to comment.