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 <julius.volz@gmail.com>
This commit is contained in:
Julius Volz 2022-04-29 23:59:31 +02:00
parent 74ebd3d175
commit 40426fc78b
1 changed files with 2 additions and 2 deletions

View File

@ -330,9 +330,9 @@ func (pb *PipelineBuilder) New(
ms := NewGossipSettleStage(peer) ms := NewGossipSettleStage(peer)
is := NewMuteStage(inhibitor) is := NewMuteStage(inhibitor)
ss := NewMuteStage(silencer)
tms := NewTimeMuteStage(times)
tas := NewTimeActiveStage(times) tas := NewTimeActiveStage(times)
tms := NewTimeMuteStage(times)
ss := NewMuteStage(silencer)
for name := range receivers { for name := range receivers {
st := createReceiverStage(name, receivers[name], wait, notificationLog, pb.metrics) st := createReceiverStage(name, receivers[name], wait, notificationLog, pb.metrics)