We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d2d9b03 + 0d11c9a commit 5880dfeCopy full SHA for 5880dfe
lnd/lnd_cluster.go
@@ -27,8 +27,10 @@ func (cluster *LNDCluster) StartLivenessLoop(ctx context.Context) {
27
case <-ctx.Done():
28
return
29
case <-ticker.C:
30
- cluster.Logger.Info("Checking cluster status")
31
- cluster.checkClusterStatus(ctx)
+ cluster.Logger.Info("Checking cluster status")
+ checkCtx, cancel := context.WithTimeout(ctx, 30*time.Second)
32
+ defer cancel()
33
+ cluster.checkClusterStatus(checkCtx)
34
}
35
36
0 commit comments