Skip to content

Commit

Permalink
Reused existing function in oidc-commons
Browse files Browse the repository at this point in the history
  • Loading branch information
steel-judoka committed Feb 11, 2021
1 parent e5def05 commit 191f147
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ private static long getConnectionDelay(OidcCommonConfig oidcConfig) {
}

public static long getConnectionDelayInMillis(OidcCommonConfig oidcConfig) {
return oidcConfig.getConnectionDelay().isPresent()
? oidcConfig.getConnectionDelay().get().toMillis()
: 0L;
return getConnectionDelay(oidcConfig) * 1000;
}

public static Optional<ProxyOptions> toProxyOptions(OidcCommonConfig.Proxy proxyConfig) {
Expand Down

0 comments on commit 191f147

Please sign in to comment.