Merge pull request #234 from LibiChai/master

add every 30 min switch discovery node
pull/237/head
Tony 6 years ago committed by GitHub
commit 0e3c15bfe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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