perf: optimize user storage retrieval and remove unused rate limiting middleware

This commit is contained in:
krau
2025-04-15 21:04:48 +08:00
parent c8c348a182
commit 609289c16a
6 changed files with 27 additions and 36 deletions

View File

@@ -62,7 +62,7 @@ func getSelectStorageMarkup(userChatID int64, fileChatID, fileMessageID int) (*t
}
buttons = append(buttons, &tg.KeyboardButtonCallback{
Text: storage.Name(),
Data: []byte(fmt.Sprintf("add %d", cbDataId)),
Data: fmt.Appendf(nil, "add %d", cbDataId),
})
}
markup := &tg.ReplyInlineMarkup{}