Skip to content

Commit d1e8e64

Browse files
committed
修复没有正确处理统计问题
1 parent 7128b9e commit d1e8e64

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/cluster.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,11 @@ async def get(
10481048
if storage == first_storage:
10491049
break
10501050
if not exists:
1051-
statistics.hit(storage, None, 0, ip, ua, statistics.Status.NOTEXISTS)
1051+
statistics.hit(storage, File(
1052+
hash = hash,
1053+
size = 0,
1054+
type = FileContentType.EMPTY
1055+
), 0, ip, ua, statistics.Status.NOTEXISTS)
10521056
return None
10531057
file = await storage.get(hash, start, end)
10541058
if file is not None:

0 commit comments

Comments
 (0)