wait for healthy upstream before accepting queries on network change

This commit is contained in:
Alex
2025-02-07 00:59:47 -05:00
committed by Cuong Manh Le
parent fb49cb71e3
commit 1d207379cb
2 changed files with 128 additions and 16 deletions
+3
View File
@@ -124,6 +124,9 @@ type prog struct {
resetCtxMu sync.Mutex
recoveryCancelMu sync.Mutex
recoveryCancel context.CancelFunc
started chan struct{}
onStartedDone chan struct{}
onStarted []func()