Fix small bug in getting retry header in publishDnsUpdates (#2076)

This commit is contained in:
sarahcaseybot 2023-07-13 12:02:37 -04:00 committed by GitHub
parent c33d2cb0b8
commit dfc7947a2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -154,7 +154,8 @@ public final class PublishDnsUpdatesAction implements Runnable, Callable<Void> {
this.timeout = timeout;
this.sendEmailService = sendEmailService;
retryCount =
cloudTasksRetryCount.orElse(
cloudTasksRetryCount.orElseGet(
() ->
appEngineRetryCount.orElseThrow(
() -> new IllegalStateException("Missing a valid retry count header")));
this.dnsWriter = dnsWriter;