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

View file

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