feat: improve watch for polaris registrar (#2788)

This commit is contained in:
houseme
2023-07-25 20:17:17 +08:00
committed by GitHub
parent 83fa3593b1
commit 2c22f4e17d
5 changed files with 528 additions and 52 deletions

View File

@ -91,8 +91,7 @@ func watchAndUpdateService(watchedServiceMap *gmap.StrAnyMap, watcher Watcher, s
)
for {
time.Sleep(time.Second)
services, err = watcher.Proceed()
if err != nil {
if services, err = watcher.Proceed(); err != nil {
intlog.Errorf(ctx, `%+v`, err)
continue
}