Destutter gremlin.GremlinResult

This commit is contained in:
kortschak 2014-08-02 22:49:57 +09:30
parent 15a45ef0d4
commit bf3ac2be9e
4 changed files with 12 additions and 11 deletions

View file

@ -267,7 +267,7 @@ func runIteratorOnSession(it graph.Iterator, ses *Session) {
}
tags := make(map[string]graph.Value)
it.TagResults(tags)
if !ses.SendResult(&GremlinResult{actualResults: &tags}) {
if !ses.SendResult(&Result{actualResults: &tags}) {
break
}
for it.NextResult() == true {
@ -278,7 +278,7 @@ func runIteratorOnSession(it graph.Iterator, ses *Session) {
}
tags := make(map[string]graph.Value)
it.TagResults(tags)
if !ses.SendResult(&GremlinResult{actualResults: &tags}) {
if !ses.SendResult(&Result{actualResults: &tags}) {
break
}
}