Prepare gremlin for introduction of a worker type

This commit is contained in:
kortschak 2014-08-25 15:57:40 +09:30
parent a96f2ef6f3
commit 95170eb8ed
5 changed files with 141 additions and 160 deletions

View file

@ -54,7 +54,7 @@ func NewSession(ts graph.TripleStore, timeout time.Duration, persist bool) *Sess
limit: -1,
timeout: timeout,
}
g.env = BuildEnviron(&g)
g.env = g.setup(otto.New())
if persist {
g.emptyEnv = g.env
}