File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
292291func (a * aggregator [T ]) PendingDeletes () int {
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments