Skip to content

Commit 5156f14

Browse files
committed
fix
Signed-off-by: Cruz Zhao <[email protected]>
1 parent 43938db commit 5156f14

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mooncake-integration/store/store_py.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,9 @@ class MooncakeStorePyWrapper {
227227
py::gil_scoped_acquire acquire_gil;
228228
auto torch = torch_module();
229229

230-
int i = 0;
231-
for (const auto &buffer_handle : buffer_handles) {
230+
for (const auto &key : keys) {
232231
uint64_t total_length = 0;
233-
auto get_result = store_->get_allocated_internal(keys[i++], total_length);
232+
auto get_result = store_->get_allocated_internal(key, total_length);
234233
if (!get_result) {
235234
results_list.append(py::none());
236235
continue;

0 commit comments

Comments
 (0)