Unverified Commit af564774 authored by Caproni's avatar Caproni Committed by GitHub
Browse files

[Fix] Alloc return type error (#7778)


Signed-off-by: default avatarCapronir <839972205@qq.com>
parent af46f299
...@@ -74,7 +74,7 @@ class ReqToMetadataIdxAllocator: ...@@ -74,7 +74,7 @@ class ReqToMetadataIdxAllocator:
def available_size(self): def available_size(self):
return len(self.free_slots) return len(self.free_slots)
def alloc(self) -> List[int]: def alloc(self) -> Optional[int]:
if len(self.free_slots) == 0: if len(self.free_slots) == 0:
return None return None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment