From 40426fc78b2267f2fa2f162116035a8cbdc1b4a4 Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Fri, 29 Apr 2022 23:59:31 +0200 Subject: [PATCH] Sort receiver stage constructions by pipeline order This is less confusing to read if the receiver stages are constructed in the same order as they are used in the pipeline below. Signed-off-by: Julius Volz --- notify/notify.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notify/notify.go b/notify/notify.go index bbdc6e7b..d6c741fe 100644 --- a/notify/notify.go +++ b/notify/notify.go @@ -330,9 +330,9 @@ func (pb *PipelineBuilder) New( ms := NewGossipSettleStage(peer) is := NewMuteStage(inhibitor) - ss := NewMuteStage(silencer) - tms := NewTimeMuteStage(times) tas := NewTimeActiveStage(times) + tms := NewTimeMuteStage(times) + ss := NewMuteStage(silencer) for name := range receivers { st := createReceiverStage(name, receivers[name], wait, notificationLog, pb.metrics)