Fix property injection
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Ryan Harg 2024-11-27 13:29:14 +01:00
parent b49d62780d
commit 69dab1365e
2 changed files with 2 additions and 2 deletions

View file

@ -16,6 +16,7 @@ import java.time.Duration;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import java.util.Optional;
@ApplicationScoped @ApplicationScoped
public class Updater { public class Updater {
@ -36,7 +37,7 @@ public class Updater {
PublicIpLookup publicIpLookup, PublicIpLookup publicIpLookup,
DnsResolver dnsResolver, DnsResolver dnsResolver,
Config config, Config config,
@ConfigProperty(name = "ddnsclient.backoff-duration:300s") Duration backoff) { @ConfigProperty(name = "ddnsclient.backoff-duration", defaultValue = "300s") Duration backoff) {
this.dynDnsRouter = dynDnsRouter; this.dynDnsRouter = dynDnsRouter;
this.publicIpLookup = publicIpLookup; this.publicIpLookup = publicIpLookup;
this.dnsResolver = dnsResolver; this.dnsResolver = dnsResolver;

View file

@ -27,7 +27,6 @@ public class DnsResolver {
int resolveCounter = 0; int resolveCounter = 0;
try { try {
Attributes result; Attributes result;
do { do {
if (resolveCounter == MAX_RETRIES) { if (resolveCounter == MAX_RETRIES) {