misc: Upgrade Go to v1.21
Upgrade to 1.21 as 1.20 is now unmaintained. Most changes are related to the new `slices` package from standard library, which can replace some existing custom functions.
This commit is contained in:
@@ -64,9 +64,7 @@ func (r *baseIter[T]) Next() *T {
|
||||
}
|
||||
r.serverPos += len(items)
|
||||
if !r.filter.IsNil() {
|
||||
items = sharedutil.FilterSlice(items, func(al *T) bool {
|
||||
return r.filter.Matches(al)
|
||||
})
|
||||
items = sharedutil.FilterSlice(items, r.filter.Matches)
|
||||
}
|
||||
r.prefetched = items
|
||||
if len(items) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user