You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by sh...@apache.org on 2025/05/20 07:10:52 UTC
(answer) 08/12: fix(plugin): set params.Value in Get method to ensure correct value retrieval
This is an automated email from the ASF dual-hosted git repository.
shuai pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/answer.git
commit ed543e8825195d72d4d5eab1d12ec63d6d588de3
Author: Sonui <me...@sonui.cn>
AuthorDate: Wed May 7 23:46:39 2025 +0800
fix(plugin): set params.Value in Get method to ensure correct value retrieval
---
plugin/kv_storage.go | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugin/kv_storage.go b/plugin/kv_storage.go
index 9b449f8f..d1ed3eaa 100644
--- a/plugin/kv_storage.go
+++ b/plugin/kv_storage.go
@@ -164,6 +164,7 @@ func (kv *KVOperator) Get(ctx context.Context, params KVParams) (string, error)
return "", ErrKVKeyNotFound
}
+ params.Value = data.Value
kv.setCache(ctx, params)
return data.Value, nil