fix(idlewatcher): correctly restart on config reload

This commit is contained in:
yusing
2025-10-10 21:57:36 +08:00
parent ef34c3ffdd
commit 357ce38b18
3 changed files with 12 additions and 5 deletions

View File

@@ -2,6 +2,7 @@ package config
import (
"context"
"errors"
"iter"
"net/http"
@@ -33,3 +34,5 @@ type State interface {
// could be nil
var ActiveState synk.Value[State]
var ErrConfigChanged = errors.New("config changed")