Fix linter problem
This commit is contained in:
parent
a53861c844
commit
7ea11da75f
|
@ -392,7 +392,7 @@ func (c *Cluster) pushPingMetrics(ctx context.Context) {
|
||||||
// Alerts returns the last alerts recorded by this cluster peer with the most
|
// Alerts returns the last alerts recorded by this cluster peer with the most
|
||||||
// recent first.
|
// recent first.
|
||||||
func (c *Cluster) Alerts() []api.Alert {
|
func (c *Cluster) Alerts() []api.Alert {
|
||||||
alerts := make([]api.Alert, len(c.alerts), len(c.alerts))
|
alerts := make([]api.Alert, len(c.alerts))
|
||||||
|
|
||||||
c.alertsMux.Lock()
|
c.alertsMux.Lock()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user