File tree Expand file tree Collapse file tree 3 files changed +23
-23
lines changed Expand file tree Collapse file tree 3 files changed +23
-23
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ package notification
2
+
3
+ import "context"
4
+
5
+ type MultiNotifier struct {
6
+ notifiers []Notifier
7
+ }
8
+
9
+ func NewMultiNotifier (notifiers []Notifier ) * MultiNotifier {
10
+ return & MultiNotifier {
11
+ notifiers : notifiers ,
12
+ }
13
+ }
14
+
15
+ func (an * MultiNotifier ) Notify (ctx context.Context , notif Notification ) error {
16
+ for _ , n := range an .notifiers {
17
+ if err := n .Notify (ctx , notif ); err != nil {
18
+ return err
19
+ }
20
+ }
21
+ return nil
22
+ }
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ func run(ctx context.Context) error {
68
68
conf .GKEClusterName ,
69
69
k8sClient ,
70
70
store ,
71
- notification .NewAggregateNotifier (notifiers ),
71
+ notification .NewMultiNotifier (notifiers ),
72
72
)
73
73
74
74
return watcher .Watch (ctx )
You can’t perform that action at this time.
0 commit comments