Add initial check for burstObserver

This commit is contained in:
yuhan6665 2024-03-05 23:10:33 -05:00
parent 6991c119e7
commit 601246468a
1 changed files with 9 additions and 0 deletions

View File

@ -79,6 +79,15 @@ func (h *HealthPing) StartScheduler(selector func() ([]string, error)) {
tickerClose := make(chan struct{})
h.ticker = ticker
h.tickerClose = tickerClose
go func() {
tags, err := selector()
if err != nil {
newError("error select outbounds for initial health check: ", err).AtWarning().WriteToLog()
return
}
h.Check(tags)
}()
go func() {
for {
go func() {