v0.5-rc2: added reload cooldown, fixed auto reload, updated API

This commit is contained in:
yusing
2024-09-17 00:10:25 +08:00
parent 996b418ea9
commit c0ebd9f8c0
7 changed files with 76 additions and 45 deletions

View File

@@ -4,6 +4,7 @@ import (
"context"
"path"
"github.com/yusing/go-proxy/common"
E "github.com/yusing/go-proxy/error"
)
@@ -22,4 +23,4 @@ func (f *fileWatcher) Events(ctx context.Context) (<-chan Event, <-chan E.Nested
return fwHelper.Add(ctx, f)
}
var fwHelper = newFileWatcherHelper()
var fwHelper = newFileWatcherHelper(common.ConfigBasePath)