-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow aliased client to pass along options when submitting traversals #97
Conversation
7112ebb
to
9f5d222
Compare
gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/ClientWithOptionsTest.java
Outdated
Show resolved
Hide resolved
gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/ClientWithOptionsTest.java
Outdated
Show resolved
Hide resolved
@@ -642,7 +642,7 @@ public static class AliasClusteredClient extends Client { | |||
|
|||
@Override | |||
public CompletableFuture<ResultSet> submitAsync(final Bytecode bytecode) { | |||
return submitAsync(bytecode, RequestOptions.EMPTY); | |||
return submitAsync(bytecode, DriverRemoteConnection.getRequestOptions(bytecode)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if the "getRequestOptions" method should be extracted out of the DRC class now that it's also being used by the Client. It feels weird to have Client depend on DRC...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved getRequestOptions
to a new static subclass ClientUtil
in Client.java
to remove dependency.
3532289
to
def3cc4
Compare
VOTE+1 |
LGTM |
1ce60c9
to
6ee0e26
Compare
088de62
to
056aad8
Compare
https://issues.apache.org/jira/browse/TINKERPOP-3039
Changed getRequestOptions to public so that Client.submitAsync can get and pass along options.