Skip to content

Commit

Permalink
Temporary commented out buggy waltid call (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
beknazaresenbek authored Aug 29, 2023
1 parent 940a668 commit 80862a9
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -776,13 +776,13 @@ private VCRequest getVCRequest(String vcType, ProofType proofType, UserModel use
vcConfigBuilder.issuerDid(issuerDid)
.proofType(proofType.toString());

optionalMinExpiry
.map(minExpiry -> Clock.systemUTC()
.instant()
.plus(Duration.of(minExpiry, ChronoUnit.MINUTES))
.truncatedTo(ChronoUnit.MILLIS))
.map(FORMATTER::format)
.ifPresent(vcConfigBuilder::expirationDate);
// TODO: reintroduce when walt api is fixed
// optionalMinExpiry
// .map(minExpiry -> Clock.systemUTC()
// .instant()
// .plus(Duration.of(minExpiry, ChronoUnit.MINUTES)))
// .map(FORMATTER::format)
// .ifPresent(vcConfigBuilder::expirationDate);

VCConfig vcConfig = vcConfigBuilder.build();
LOGGER.debugf("VC config is %s", vcConfig);
Expand Down

0 comments on commit 80862a9

Please sign in to comment.