From 32eaff5c5d786cb84ec1add562ed45aa4e6ae354 Mon Sep 17 00:00:00 2001 From: Untone Date: Tue, 21 May 2024 03:37:14 +0300 Subject: [PATCH] reimplement-following-data-proxy-3 --- server/memorystore/providers/redis/store.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/memorystore/providers/redis/store.go b/server/memorystore/providers/redis/store.go index c5c021e..9073b81 100644 --- a/server/memorystore/providers/redis/store.go +++ b/server/memorystore/providers/redis/store.go @@ -8,6 +8,8 @@ import ( "github.com/authorizerdev/authorizer/server/constants" log "github.com/sirupsen/logrus" + + "github.com/go-redis/redis/v8" ) var ( @@ -227,7 +229,6 @@ type AuthorProfile struct { // GetUserAppDataFromRedis retrieves user profile and follows from Redis, combines them into a JSON format, // and assigns the JSON string to the provided user's ID. - func (c *provider) GetUserAppDataFromRedis(userId string) (string, error) { // Получаем ID автора из Redis authorIdString, err := c.store.Get(c.ctx, fmt.Sprintf("user:id:%s", userId)).Result()