Skip to content

Commit 3cf34f9

Browse files
authored
Fix healthcheck/readiness for seeder (#46)
Healthcheck should be responding with > 1 IP Readiness is responding in general
1 parent 8299426 commit 3cf34f9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/healthcheck/dns.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,12 @@ func (h *Healthcheck) DNSCheckLoop() {
3636
return
3737
}
3838

39+
t := time.Now()
40+
h.lastDNSTime = t
41+
3942
if len(ips) > 0 {
4043
log.Println("Received at least 1 IP. Ready!")
41-
h.lastDNSTime = time.Now()
44+
h.lastDNSTimeGT1 = t
4245
return
4346
}
4447

0 commit comments

Comments
 (0)