1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-17 04:30:03 +02:00

internal/redis/wrapper.go: in Key() used "::" as a separator between namespace and channel.

This commit is contained in:
Henrik Hautakoski 2023-01-06 15:38:21 +01:00
parent dcb1e173a2
commit 42da179c74

View file

@ -37,8 +37,9 @@ func SetPrefix(components ...string) {
}
func Key(components ...string) string {
components = append(prefix, components...)
return strings.Join(components, ".")
namespace := strings.Join(prefix, ".")
channel := strings.Join(components, ".")
return namespace + "::" + channel
}
func Get(key string) *_redis.StringCmd {