diff --git a/main.go b/main.go index bc70c69..293869c 100644 --- a/main.go +++ b/main.go @@ -4,7 +4,6 @@ import ( "database/sql" "strconv" - "github.com/go-redis/redis" "github.com/miekg/dns" "github.com/outout14/sacrebleu-dns/core" "github.com/outout14/sacrebleu-dns/utils" @@ -15,7 +14,6 @@ import ( //Global vars var conf *utils.Conf var DB *sql.DB -var redisDb *redis.Client //Main loop func main() { diff --git a/utils/redis.go b/utils/redis.go index 7a60b29..2291951 100644 --- a/utils/redis.go +++ b/utils/redis.go @@ -58,11 +58,3 @@ func redisSet(c *redis.Client, key string, ttl time.Duration, value interface{}) } return c.Set(ctx, key, p, ttl).Err() } - -func redisGet(c *redis.Client, key string, dest interface{}) error { - p, err := c.Get(ctx, key).Result() - if err != nil { - return err - } - return json.Unmarshal([]byte(p), dest) -}