Skip to content

Commit

Permalink
Fix healthcheck/readiness for seeder (#46)
Browse files Browse the repository at this point in the history
Healthcheck should be responding with > 1 IP
Readiness is responding in general
  • Loading branch information
cmmarslender authored Dec 6, 2024
1 parent 8299426 commit 3cf34f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/healthcheck/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@ func (h *Healthcheck) DNSCheckLoop() {
return
}

t := time.Now()
h.lastDNSTime = t

if len(ips) > 0 {
log.Println("Received at least 1 IP. Ready!")
h.lastDNSTime = time.Now()
h.lastDNSTimeGT1 = t
return
}

Expand Down

0 comments on commit 3cf34f9

Please sign in to comment.