mirror of
https://github.com/sartoopjj/thefeed.git
synced 2026-05-19 06:24:35 +03:00
feat: update resolver health check to run first check in background immediately
This commit is contained in:
+1
-2
@@ -512,12 +512,11 @@ func (s *Server) initFetcher() error {
|
||||
// Start rate limiter and noise goroutines.
|
||||
fetcher.Start(ctx)
|
||||
|
||||
// Start periodic resolver health checks.
|
||||
// Start periodic resolver health checks (runs first check in background immediately).
|
||||
checker := client.NewResolverChecker(fetcher, timeout)
|
||||
checker.SetLogFunc(func(msg string) {
|
||||
s.addLog(msg)
|
||||
})
|
||||
checker.CheckNow()
|
||||
checker.Start(ctx)
|
||||
|
||||
s.fetcher = fetcher
|
||||
|
||||
Reference in New Issue
Block a user