Skip to content

Commit c979990

Browse files
author
DvirDukhan
committed
changed Jedis Version. Minor code fix in ContextedRedisGraph
1 parent b041280 commit c979990

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<dependency>
6363
<groupId>redis.clients</groupId>
6464
<artifactId>jedis</artifactId>
65-
<version>3.1.0-rc</version>
65+
<version>3.1.0</version>
6666
</dependency>
6767
<dependency>
6868
<groupId>org.apache.commons</groupId>

src/main/java/com/redislabs/redisgraph/impl/api/ContextedRedisGraph.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,14 @@ protected Jedis getConnection() {
4646
@Override
4747
protected ResultSet sendQuery(String graphId, String preparedQuery) {
4848
Jedis conn = getConnection();
49-
List<Object> rawResponse;
5049
try {
51-
rawResponse = (List<Object>) conn.sendCommand(RedisGraphCommand.QUERY, graphId, preparedQuery, Utils.COMPACT_STRING);
50+
List<Object> rawResponse = (List<Object>) conn.sendCommand(RedisGraphCommand.QUERY, graphId, preparedQuery, Utils.COMPACT_STRING);
51+
return new ResultSetImpl(rawResponse, this, caches.getGraphCache(graphId));
5252
}
5353
catch (Exception e) {
5454
conn.close();
5555
throw e;
5656
}
57-
return new ResultSetImpl(rawResponse, this, caches.getGraphCache(graphId));
5857
}
5958

6059
/**

0 commit comments

Comments
 (0)