Skip to content

g3keymess: return error instead of panicking for unimplemented redis key store - #1134

Merged
zh-jq merged 1 commit into
bytedance:masterfrom
dajiaohuang:fix/redis-keystore-panic
Sep 26, 2026
Merged

zh-jq merged 1 commit into
bytedance:masterfrom
dajiaohuang:fix/redis-keystore-panic

Conversation

@dajiaohuang

Copy link
Copy Markdown
Contributor

Replaces the unconditional unimplemented!() panic in RedisKeyStoreConfig::load_keys() with a proper anyhow::Result::Err that returns a descriptive error message.

Previously, configuring a redis key store (which the config parser accepts as valid) would cause g3keymess to abort with a panic during startup or reload. Now, it returns a graceful error telling operators the redis store is not yet implemented and suggesting they use the local store type instead.

Fixes #1115

@zh-jq
zh-jq merged commit 5a487bb into bytedance:master Sep 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

g3keymess: Redis key store panics during load

2 participants