Skip to content

Commit a858956

Browse files
committed
fix: index system
1 parent f55a000 commit a858956

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/command.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,11 @@ impl CommandManager {
260260
}
261261

262262
if command == CommandList::GET {
263+
263264
let key = slice.get(0).unwrap().to_string();
264265

265-
// 暂时不考虑为读取增加权重(因为我就是不想哈哈哈)
266+
// 为读取增加 1 的权重
267+
database_manager.lock().await.add_weight(current.to_string(), 1).await;
266268
let result = database_manager
267269
.lock()
268270
.await

0 commit comments

Comments
 (0)