From 91adb3096696097bd53039e32308ef5213d79eee Mon Sep 17 00:00:00 2001 From: LibiChai Date: Tue, 23 Jul 2019 13:15:59 +0800 Subject: [PATCH] add every 30 min switch recovery node --- pkg/naming/discovery/discovery.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/naming/discovery/discovery.go b/pkg/naming/discovery/discovery.go index 9197362b5..1030d32c4 100644 --- a/pkg/naming/discovery/discovery.go +++ b/pkg/naming/discovery/discovery.go @@ -513,6 +513,7 @@ func (d *Discovery) serverproc() { case <-d.ctx.Done(): return case <-ticker.C: + d.switchNode() default: } apps, err := d.polls(ctx)