@@ -18,12 +18,6 @@ func processEvent(event events.Message) {
18
18
var msg_builder , title_builder strings.Builder
19
19
var ActorID , ActorImage , ActorName , TitleID , ActorImageVersion string
20
20
21
- // Adding a small configurable delay here
22
- // Sometimes events are pushed through the event channel really quickly, but they arrive on the notification clients in
23
- // wrong order (probably due to message delivery time), e.g. Pushover is susceptible for this.
24
- // Finishing this function not before a certain time before draining the next event from the event channel in main() solves the issue
25
- timer := time .NewTimer (config .Options .Delay )
26
-
27
21
ActorID = getActorID (event )
28
22
ActorImage = getActorImage (event )
29
23
ActorName = getActorName (event )
@@ -88,11 +82,6 @@ func processEvent(event events.Message) {
88
82
// function will finish when all reporters finished
89
83
sendNotifications (timestamp , message , title , config .Reporters )
90
84
91
- // block function until time (delay) triggers
92
- // if sendNotifications is faster than the delay, function blocks here until delay is over
93
- // if sendNotifications takes longer than the delay, trigger already fired and no delay is added
94
- <- timer .C
95
-
96
85
}
97
86
98
87
func getActorID (event events.Message ) string {
0 commit comments