From 42da179c74cb233ae8cb01b38be3ef3e56b62b0f Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Fri, 6 Jan 2023 15:38:21 +0100 Subject: [PATCH] internal/redis/wrapper.go: in Key() used "::" as a separator between namespace and channel. --- internal/redis/wrapper.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/redis/wrapper.go b/internal/redis/wrapper.go index e103ed4..3e0f7c1 100644 --- a/internal/redis/wrapper.go +++ b/internal/redis/wrapper.go @@ -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 {