Skip to content

Commit

Permalink
feat:add zero protection.
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyeBeFreeman committed Apr 18, 2024
1 parent fe1f333 commit 5180edf
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,19 @@ public List<PolarisConfigDataResource> resolveProfileSpecific(
}

// prepare and init earlier Polaris SDKContext to pull config files from remote.
prepareAndInitEarlierPolarisSdkContext(resolverContext, polarisConfigProperties, polarisCryptoConfigProperties, polarisContextProperties);

try {
prepareAndInitEarlierPolarisSdkContext(resolverContext, polarisConfigProperties, polarisCryptoConfigProperties, polarisContextProperties);
}
catch (Throwable throwable) {
if (location.isOptional()) {
log.warn("create earlier polaris SDK context failed.", throwable);
return new ArrayList<>();
}
else {
log.error("create earlier polaris SDK context failed.", throwable);
throw throwable;
}
}
bootstrapContext.registerIfAbsent(PolarisConfigProperties.class,
BootstrapRegistry.InstanceSupplier.of(polarisConfigProperties));

Expand Down

0 comments on commit 5180edf

Please sign in to comment.