all: add api driven config reload at runtime

This commit is contained in:
Cuong Manh Le
2024-08-01 21:04:21 +07:00
committed by Cuong Manh Le
parent 95a9df826d
commit 82e0d4b0c4
5 changed files with 111 additions and 23 deletions

View File

@@ -1139,6 +1139,7 @@ func run(appCallback *AppCallback, stopCh chan struct{}) {
stopCh: stopCh,
reloadCh: make(chan struct{}),
reloadDoneCh: make(chan struct{}),
apiReloadCh: make(chan *ctrld.Config),
cfg: &cfg,
appCallback: appCallback,
}