Skip to content

Commit

Permalink
common: moved iterator to graph traversal package
Browse files Browse the repository at this point in the history
  • Loading branch information
lebauce committed Mar 2, 2020
1 parent c1fa587 commit f16fed3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
*/

package common
package traversal

// Iterator describes a int64 iterator
type Iterator struct {
Expand Down
6 changes: 3 additions & 3 deletions graffiti/graph/traversal/traversal.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ type StepContext struct {
}

// Iterator on the range
func (r *GraphTraversalRange) Iterator() *common.Iterator {
func (r *GraphTraversalRange) Iterator() *Iterator {
if r != nil {
return common.NewIterator(0, r[0], r[1])
return NewIterator(0, r[0], r[1])
}
return common.NewIterator()
return NewIterator()
}

// GraphTraversalRange is within a min and a max
Expand Down

0 comments on commit f16fed3

Please sign in to comment.