feat: 优化 GeoIP 更新逻辑

This commit is contained in:
naiba committed 2024-12-07 11:06:42 +08:00
1 parent 251bc10af9
commit 5b5e006b97
8 files changed
+180 -79

No files matched your search

+1 -1
View File
@@ -113,7 +113,7 @@ func DispatchTask(serviceSentinelDispatchBus <-chan model.Service) {
}
func DispatchKeepalive() {
singleton.Cron.AddFunc("@every 30s", func() {
singleton.Cron.AddFunc("@every 20s", func() {
singleton.SortedServerLock.RLock()
defer singleton.SortedServerLock.RUnlock()
for i := 0; i < len(singleton.SortedServerList); i++ {