Skip to content

Commit aabbbeb

Browse files
committed
Fix init check
1 parent 787aa76 commit aabbbeb

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

app/observatory/burst/healthping.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,16 @@ func (h *HealthPing) StartScheduler(selector func() ([]string, error)) {
102102
h.Check(tags)
103103
}()
104104

105+
// init run to get a fast check result
106+
go func() {
107+
tags, err := selector()
108+
if err != nil {
109+
errors.LogWarning(h.ctx, "error select outbounds for initial health check: ", err)
110+
return
111+
}
112+
h.Check(tags)
113+
}()
114+
105115
go func() {
106116
for {
107117
go func() {

0 commit comments

Comments
 (0)