fix: peer keepalive with manager (#1940)

Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
Gaius 2022-12-21 14:05:28 +08:00
parent e588fb8bcf
commit c3882ccfc6
No known key found for this signature in database
GPG Key ID: 8B4E5D1290FA2FFB
1 changed files with 10 additions and 10 deletions

View File

@ -309,7 +309,6 @@ func (a *announcer) announceToManager() error {
}); err != nil {
return err
}
}
// Start keepalive to manager.
go func() {
@ -320,6 +319,7 @@ func (a *announcer) announceToManager() error {
ClusterId: uint64(a.config.Scheduler.Manager.SeedPeer.ClusterID),
}, a.done)
}()
}
return nil
}