add every 30 min switch recovery node

pull/234/head
LibiChai 6 years ago
parent 5e75618617
commit 91adb30966
  1. 1
      pkg/naming/discovery/discovery.go

@ -513,6 +513,7 @@ func (d *Discovery) serverproc() {
case <-d.ctx.Done(): case <-d.ctx.Done():
return return
case <-ticker.C: case <-ticker.C:
d.switchNode()
default: default:
} }
apps, err := d.polls(ctx) apps, err := d.polls(ctx)

Loading…
Cancel
Save