Skip to content

Commit 364c50c

Browse files
committed
Resolve conflicts
Signed-off-by: Xiaochao Dong (@damnever) <[email protected]>
1 parent 5f20c84 commit 364c50c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

provider/mem/mem.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func (a *Alerts) gc() {
134134
// they are resolved. Alerts waiting for resolved notifications are
135135
// held in memory in aggregation groups redundantly.
136136
a.marker.Delete(alert.Fingerprint())
137-
a.callback.PostDelete(alert)
137+
a.callback.PostDelete(&alert)
138138
}
139139

140140
for i, l := range a.listeners {

store/store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func (a *Alerts) Run(ctx context.Context, interval time.Duration) {
7070
}
7171

7272
// GC deletes resolved alerts and returns them.
73-
func (a *Alerts) GC() []*types.Alert {
73+
func (a *Alerts) GC() []types.Alert {
7474
a.Lock()
7575
var resolved []types.Alert
7676
for fp, alert := range a.c {

0 commit comments

Comments
 (0)