Skip to content

Commit 587c6db

Browse files
Fix(client): fixed wrong formats and mode
1 parent 6c295de commit 587c6db

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

hugegraph-client/src/main/java/org/apache/hugegraph/api/graphs/GraphsAPI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public void readMode(String graphSpace, String graph, GraphReadMode readMode) {
222222
// will be encoded to "%2F". So use "graph_read_mode" here, although
223223
// inaccurate.
224224
if (graphSpace == null) {
225-
this.client.put(joinPath(this.path(), graph, MODE), null, readMode);
225+
this.client.put(joinPath(this.path(), graph, GRAPH_READ_MODE), null, readMode);
226226
return;
227227
}
228228
this.client.put(joinPath(this.path(), graphSpace, graph, GRAPH_READ_MODE), null, readMode);

hugegraph-client/src/main/java/org/apache/hugegraph/client/RestClient.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,14 @@ public class RestClient extends AbstractRestClient {
4444
@Getter
4545
@Setter
4646
private boolean supportGs;
47+
private Version apiVersion = null;
4748

4849
static {
4950
SimpleModule module = new SimpleModule();
5051
module.addDeserializer(Path.class, new PathDeserializer());
5152
RestResult.registerModule(module);
5253
}
5354

54-
private Version apiVersion = null;
55-
5655
public RestClient(String url, String username, String password, int timeout) {
5756
super(url, username, password, timeout * SECOND);
5857
}

hugegraph-client/src/main/java/org/apache/hugegraph/driver/GraphsManager.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,5 +146,4 @@ public GraphReadMode readMode(String graph) {
146146
public String clone(String graph, Map<String, Object> body) {
147147
return this.graphsAPI.clone(graph, body);
148148
}
149-
150149
}

0 commit comments

Comments
 (0)