From 2cb2cf3cc7d1c4c933203bffee44352154a12cfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Tue, 9 Aug 2022 16:16:10 +0800 Subject: [PATCH] =?UTF-8?q?feat(redis):=E5=9C=A8Redis=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E5=8C=85=E4=B8=AD=E5=A2=9E=E5=8A=A0=E5=85=B1=E7=94=A8=E7=9A=84?= =?UTF-8?q?Context=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- global/redis.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/global/redis.go b/global/redis.go index 15f76d2..b6bd3f6 100644 --- a/global/redis.go +++ b/global/redis.go @@ -1,6 +1,7 @@ package global import ( + "context" "electricity_bill_calc/config" "fmt" @@ -9,6 +10,7 @@ import ( var ( RedisConn *redis.Client + Ctx = context.Background() ) func SetupRedisConnection() error {