mirror of
https://github.com/datarhei/core.git
synced 2025-10-05 16:07:07 +08:00
Fix nil pointer dereference
This commit is contained in:
@@ -72,9 +72,6 @@ func (n *clusterNode) start(id string) error {
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
n.cancelPing = cancel
|
||||
|
||||
go n.ping(ctx)
|
||||
go n.pingCore(ctx)
|
||||
|
||||
n.lastCoreContactErr = fmt.Errorf("not started yet")
|
||||
n.lastContactErr = fmt.Errorf("not started yet")
|
||||
|
||||
@@ -110,6 +107,9 @@ func (n *clusterNode) start(id string) error {
|
||||
}(ctx)
|
||||
}
|
||||
|
||||
go n.ping(ctx)
|
||||
go n.pingCore(ctx)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user