Better size reporting
This commit is contained in:
parent
102b3d7ef5
commit
6201e709ef
3 changed files with 22 additions and 8 deletions
|
|
@ -198,7 +198,7 @@ func (it *Iterator) Contains(v graph.Value) bool {
|
|||
func (it *Iterator) Size() (int64, bool) {
|
||||
if it.size == -1 {
|
||||
var err error
|
||||
it.size, err = it.qs.getSize(it.collection, &it.constraint)
|
||||
it.size, err = it.qs.getSize(it.collection, it.constraint)
|
||||
if err != nil {
|
||||
it.err = err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue