diff --git a/graph/iterator/hasa_iterator.go b/graph/iterator/hasa_iterator.go index 031c3b0..21dbb16 100644 --- a/graph/iterator/hasa_iterator.go +++ b/graph/iterator/hasa_iterator.go @@ -247,6 +247,9 @@ func (it *HasA) Stats() graph.IteratorStats { } // Close the subiterator, the result iterator (if any) and the HasA. +// +// Note: as this involves closing multiple iterators, only the first error +// encountered while closing will be reported (if any). func (it *HasA) Close() error { var ret error diff --git a/graph/iterator/linksto_iterator.go b/graph/iterator/linksto_iterator.go index bf51293..0b2f9c4 100644 --- a/graph/iterator/linksto_iterator.go +++ b/graph/iterator/linksto_iterator.go @@ -181,6 +181,9 @@ func (it *LinksTo) Result() graph.Value { } // Close our subiterators. +// +// Note: as this involves closing multiple subiterators, only the first error +// encountered while closing will be reported (if any). func (it *LinksTo) Close() error { var ret error