refactor(bank): use collections for state management (#15293)

Co-authored-by: testinginprod <testinginprod@somewhere.idk>
This commit is contained in:
testinginprod
2023-03-09 11:36:39 +00:00
committed by GitHub
co-authored by testinginprod
parent 138e0e1d3c
commit 2b7a1102ed
16 changed files with 159 additions and 255 deletions
+6 -3
View File
@@ -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 {