chore: add clarification comment for closure clones
All checks were successful
BotServer CI/CD / build (push) Successful in 2m3s
All checks were successful
BotServer CI/CD / build (push) Successful in 2m3s
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
parent
e34481b7f8
commit
78130caaa1
1 changed files with 1 additions and 0 deletions
|
|
@ -67,6 +67,7 @@ pub fn add_suggestion_keyword(
|
|||
user_session: UserSession,
|
||||
engine: &mut Engine,
|
||||
) {
|
||||
// Each closure needs its own Arc<redis::Client> and UserSession clone
|
||||
let cache = state.cache.clone();
|
||||
let cache2 = state.cache.clone();
|
||||
let cache3 = state.cache.clone();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue