Skip to content

Commit

Permalink
fix: unused buf2 in v2/Float16VectorExample.java example
Browse files Browse the repository at this point in the history
Signed-off-by: Yinzuo Jiang <[email protected]>
  • Loading branch information
jiangyinzuo committed Oct 31, 2024
1 parent 70a3c18 commit 5506c5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/main/java/io/milvus/v2/Float16VectorExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ private static void prepareData(int count) {
ByteBuffer buf1 = CommonUtils.generateFloat16Vector(VECTOR_DIM, false);
row.add(FP16_VECTOR_FIELD, gson.toJsonTree(buf1.array()));
ByteBuffer buf2 = CommonUtils.generateFloat16Vector(VECTOR_DIM, true);
row.add(BF16_VECTOR_FIELD, gson.toJsonTree(buf1.array()));
row.add(BF16_VECTOR_FIELD, gson.toJsonTree(buf2.array()));
rows.add(row);
}

Expand Down Expand Up @@ -217,4 +217,4 @@ public static void main(String[] args) {

client.close();
}
}
}

0 comments on commit 5506c5f

Please sign in to comment.