refactor: follow the google go style guide
Document every package and exported identifier, return the log level from NewLogger instead of keeping it in a package variable, and stop tests from mutating the argon2 parameters. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
048e114fd9
commit
d20225982a
21 files changed
+147
-36
No files matched your search
@@ -9,6 +9,8 @@ import (
|
||||
"git.zb-server.de/ZB-Server/uptimesebi/internal/config"
|
||||
)
|
||||
|
||||
// OpenRedis connects to a single server or, when c.RedisSentinel is enabled,
|
||||
// to the current master via sentinel with automatic failover.
|
||||
func OpenRedis(ctx context.Context, c config.Common) (*redis.Client, error) {
|
||||
var rdb *redis.Client
|
||||
if c.RedisSentinel.Enabled() {
|
||||
|
||||
Reference in new issue
Block a user