Skip to content

Commit

Permalink
del -> pop
Browse files Browse the repository at this point in the history
Signed-off-by: Woosuk Kwon <[email protected]>
  • Loading branch information
WoosukKwon committed Feb 8, 2025
1 parent 55ffb69 commit 5278ed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/v1/core/kv_cache_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,4 +512,4 @@ def free_block_hashes(self, request: Request) -> None:
NOTE: Unlike `free`, this method should be called only when the request
is finished, not when it is preempted.
"""
del self.req_to_block_hashes[request.request_id]
self.req_to_block_hashes.pop(request.request_id, None)

0 comments on commit 5278ed0

Please sign in to comment.