From a0d93fc62cf715bda354b4dfb94aaa1d7196ee77 Mon Sep 17 00:00:00 2001 From: Hector Sanjuan Date: Mon, 10 Jun 2019 14:09:06 +0200 Subject: [PATCH] Change MaxAlertThreshold to 1 --- monitor/metrics/checker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor/metrics/checker.go b/monitor/metrics/checker.go index a19fd485..3248aa96 100644 --- a/monitor/metrics/checker.go +++ b/monitor/metrics/checker.go @@ -19,7 +19,7 @@ var AlertChannelCap = 256 // MaxAlertThreshold specifies how many alerts will occur per a peer is // removed the list of monitored peers. -var MaxAlertThreshold = 5 +var MaxAlertThreshold = 1 // ErrAlertChannelFull is returned if the alert channel is full. var ErrAlertChannelFull = errors.New("alert channel is full")