1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-03-17 21:07:54 +02:00

Merge pull request #234 from LibiChai/master

add every 30 min switch discovery node
This commit is contained in:
Tony 2019-07-23 22:31:42 +08:00 committed by GitHub
commit 0e3c15bfe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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