Skip to content

Commit 31eec77

Browse files
committed
lint
1 parent ae08d48 commit 31eec77

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

expr.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ type AggregateEvaluator[T Evaluable] interface {
7979
SlowLen() int
8080

8181
// Close stops background goroutines and releases resources
82-
Close() error
82+
Close()
8383

8484
// PendingDeletes returns the number of soft-deleted items awaiting GC
8585
PendingDeletes() int
@@ -284,9 +284,8 @@ func (a *aggregator[T]) SlowLen() int {
284284
return len(a.constants)
285285
}
286286

287-
func (a *aggregator[T]) Close() error {
287+
func (a *aggregator[T]) Close() {
288288
close(a.stopGC)
289-
return nil
290289
}
291290

292291
func (a *aggregator[T]) PendingDeletes() int {

expr_test.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -855,11 +855,6 @@ func TestAddRemove(t *testing.T) {
855855
require.Empty(t, eval)
856856
require.EqualValues(t, 0, count)
857857
})
858-
859-
// NOTE: With async GC, Remove() no longer returns an error for non-existent items
860-
// It just marks the ID as deleted, and GC handles cleanup
861-
// err = e.Remove(ctx, tex(`event.data.another == "i'm not here"`))
862-
// require.Error(t, ErrEvaluableNotFound, err)
863858
})
864859

865860
t.Run("neq", func(t *testing.T) {
@@ -912,7 +907,6 @@ func TestAddRemove(t *testing.T) {
912907
assert.Equal(t, 0, e.FastLen())
913908
}, 300*time.Millisecond, 10*time.Millisecond)
914909

915-
// NOTE: With async GC, Remove() no longer returns an error for non-existent items
916910
})
917911

918912
t.Run("Partial aggregates", func(t *testing.T) {

0 commit comments

Comments
 (0)