From ab685cfe04993ba35e719228f8eba0667046a1f7 Mon Sep 17 00:00:00 2001 From: kortschak Date: Tue, 26 Aug 2014 10:17:44 +0930 Subject: [PATCH] Mark limit as unused in gremlin and SEXP Used in SEXP. Currently there appears to be no way to limit the number of query returns from MQL. --- query/gremlin/session.go | 2 +- query/mql/session.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/query/gremlin/session.go b/query/gremlin/session.go index beac46f..2d1c359 100644 --- a/query/gremlin/session.go +++ b/query/gremlin/session.go @@ -134,7 +134,7 @@ func (s *Session) runUnsafe(input interface{}) (otto.Value, error) { return out, err } -func (s *Session) ExecInput(input string, out chan interface{}, limit int) { +func (s *Session) ExecInput(input string, out chan interface{}, _ int) { defer close(out) s.err = nil s.wk.results = out diff --git a/query/mql/session.go b/query/mql/session.go index 63aa6ba..305caeb 100644 --- a/query/mql/session.go +++ b/query/mql/session.go @@ -72,7 +72,7 @@ func (s *Session) InputParses(input string) (query.ParseResult, error) { return query.Parsed, nil } -func (s *Session) ExecInput(input string, c chan interface{}, limit int) { +func (s *Session) ExecInput(input string, c chan interface{}, _ int) { defer close(c) var mqlQuery interface{} err := json.Unmarshal([]byte(input), &mqlQuery)