Skip to content

Commit

Permalink
Fix tsInfoDebug after update (redis#3461)
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 committed Jun 8, 2023
1 parent 9383cd4 commit 869dc0b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
15 changes: 0 additions & 15 deletions src/main/java/redis/clients/jedis/BuilderFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -1719,21 +1719,6 @@ public String toString() {
}
};

public static final Builder<Map<String, Object>> ENCODED_OBJECT_MAP_FROM_PAIRS = new Builder<Map<String, Object>>() {
@Override
public Map<String, Object> build(Object data) {
final List<Object> list = (List<Object>) data;
final Map<String, Object> map = new HashMap<>(list.size(), 1f);
for (Object object : list) {
if (object == null) continue;
final List<Object> flat = (List<Object>) object;
if (flat.isEmpty()) continue;
map.put(STRING.build(flat.get(0)), ENCODED_OBJECT.build(flat.get(1)));
}
return map;
}
};

public static final Builder<List<LibraryInfo>> LIBRARY_LIST = new Builder<List<LibraryInfo>>() {
@Override
public List<LibraryInfo> build(Object data) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/redis/clients/jedis/timeseries/TSInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public TSInfo build(Object data) {
List<Map<String, Object>> chunksValueList = new ArrayList<>(chunksDataList.size());
chunks = new ArrayList<>(chunksDataList.size());
for (Object chunkData : chunksDataList) {
Map<String, Object> chunk = BuilderFactory.ENCODED_OBJECT_MAP_FROM_PAIRS.build(chunkData);
Map<String, Object> chunk = BuilderFactory.ENCODED_OBJECT_MAP.build(chunkData);
chunksValueList.add(new HashMap<>(chunk));
chunks.add(chunk);
}
Expand Down

0 comments on commit 869dc0b

Please sign in to comment.