Repository navigation
Conversation
Nothing calls it; the secret key path uses server.GetOrCreateKey through the VariableStore interface. The method is also wrong if revived: it logs a Redis Get error when Get succeeds, treats every Get error as a missing key, and returns an empty value without an error when the client is nil. Drop it rather than keep a duplicate that can mislead callers.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Summary
kvrocks.Client.GetOrCreateKeyhas no callers. The secret key path usesserver.GetOrCreateKeythrough theVariableStoreinterface, so this method is a duplicate.It is also wrong if someone revives it:
Getsucceeds.Geterror, including network failures, as a missing key and falls through toSetNX.This PR removes the method instead of keeping a misleading duplicate. No behavior change: nothing references it.
Verified with
./build.sh --goand./build.sh --testoninternal/engine/...andinternal/server/....