refactor(bank): use collections for state management (#15293)
Co-authored-by: testinginprod <testinginprod@somewhere.idk>
This commit is contained in:
co-authored by
testinginprod
parent
138e0e1d3c
commit
2b7a1102ed
@@ -168,10 +168,13 @@ func collFilteredPaginateNoKey[K, V any, C Collection[K, V]](
|
||||
count++
|
||||
}
|
||||
}
|
||||
return results, &PageResponse{
|
||||
resp := &PageResponse{
|
||||
NextKey: nextKey,
|
||||
Total: count + offset,
|
||||
}, nil
|
||||
}
|
||||
if countTotal {
|
||||
resp.Total = count + offset
|
||||
}
|
||||
return results, resp, nil
|
||||
}
|
||||
|
||||
func advanceIter[I interface {
|
||||
|
||||
Reference in New Issue
Block a user