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

add every 30 min switch recovery node

This commit is contained in:
LibiChai 2019-07-23 13:15:59 +08:00
parent 5e75618617
commit 91adb30966

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)