Merge pull request #125 from barakmich/gremlin_underscore

Import underscore for Gremlin
This commit is contained in:
Barak Michener 2014-08-20 13:52:05 -04:00
commit d3d55e320d
2 changed files with 2 additions and 0 deletions

View file

@ -210,6 +210,7 @@ func runIteratorToArrayNoTags(it graph.Iterator, ses *Session, limit int) []stri
func runIteratorWithCallback(it graph.Iterator, ses *Session, callback otto.Value, this otto.FunctionCall, limit int) {
count := 0
it, _ = it.Optimize()
glog.V(2).Infoln(it.DebugString(0))
for {
select {
case <-ses.kill:

View file

@ -22,6 +22,7 @@ import (
"time"
"github.com/robertkrimen/otto"
_ "github.com/robertkrimen/otto/underscore"
"github.com/google/cayley/graph"
"github.com/google/cayley/query"