Skip to content

Commit 35d554c

Browse files
committed
clean up
1 parent 1edc652 commit 35d554c

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

src/main/java/com/uid2/operator/Main.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,7 @@ private KeyManager getKeyManager() {
249249
}
250250

251251
public static void recordStartupComplete() {
252-
if (startupBeginTime == null)
253-
return;
252+
if (startupBeginTime == null) return;
254253
final Duration d = Duration.between(startupBeginTime, Instant.now());
255254
Timer.builder("uid2_operator_startup_duration").register(globalRegistry).record(d);
256255
LOGGER.info("Startup in {} ms", d.toMillis());
@@ -259,12 +258,13 @@ public static void recordStartupComplete() {
259258
public static void main(String[] args) throws Exception {
260259
startupBeginTime = Instant.now();
261260

262-
java.security.Security.setProperty("networkaddress.cache.ttl", "60");
261+
java.security.Security.setProperty("networkaddress.cache.ttl" , "60");
263262

264263
final String vertxConfigPath = System.getProperty(Const.Config.VERTX_CONFIG_PATH_PROP);
265264
if (vertxConfigPath != null) {
266265
LOGGER.info("Running CUSTOM CONFIG mode, config: {}", vertxConfigPath);
267-
} else if (!Utils.isProductionEnvironment()) {
266+
}
267+
else if (!Utils.isProductionEnvironment()) {
268268
LOGGER.info("Running LOCAL DEBUG mode, config: {}", Const.Config.LOCAL_CONFIG_PATH);
269269
System.setProperty(Const.Config.VERTX_CONFIG_PATH_PROP, Const.Config.LOCAL_CONFIG_PATH);
270270
} else {
@@ -309,8 +309,7 @@ private ICloudStorage configureCloudOptOutStore() {
309309
private ICloudStorage configureAttestedOptOutStore(UidOptOutClient optOutClient, String coreAttestUrl) {
310310
String optOutMdPath = this.config.getString(Const.Config.OptOutMetadataPathProp);
311311
LOGGER.info("OptOut stores- Using uid2-core attestation endpoint: " + coreAttestUrl);
312-
return this
313-
.wrapCloudStorageForOptOut(new OptOutCloudStorage(optOutClient, optOutMdPath, CloudUtils.defaultProxy));
312+
return this.wrapCloudStorageForOptOut(new OptOutCloudStorage(optOutClient, optOutMdPath, CloudUtils.defaultProxy));
314313
}
315314

316315
private ICloudStorage wrapCloudStorageForOptOut(ICloudStorage cloudStorage) {

0 commit comments

Comments
 (0)