From 542c332956c4b4f7fbb486f05e7b2a4dc833fb58 Mon Sep 17 00:00:00 2001 From: Fenny <25108519+Fenny@users.noreply.github.com> Date: Sat, 31 Oct 2020 07:58:01 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=97=20remove=20cfg=20from=20storage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- redis/redis.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/redis/redis.go b/redis/redis.go index fa163df9..6a046a99 100644 --- a/redis/redis.go +++ b/redis/redis.go @@ -9,8 +9,7 @@ import ( // Storage interface that is implemented by storage providers type Storage struct { - cfg Config - db *redis.Client + db *redis.Client } // New creates a new redis storage @@ -52,8 +51,7 @@ func New(config ...Config) Storage { } // Create new store return Storage{ - cfg: cfg, - db: db, + db: db, } }