From bd8f750e215f2eb3ff5bdd1398378c842046e6f4 Mon Sep 17 00:00:00 2001 From: Lingfei Kong Date: Sat, 18 Dec 2021 23:49:18 +0800 Subject: [PATCH] docs: add code description --- internal/pump/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/pump/server.go b/internal/pump/server.go index 79f37843..532e88e3 100644 --- a/internal/pump/server.go +++ b/internal/pump/server.go @@ -40,6 +40,7 @@ type preparedPumpServer struct { } func createPumpServer(cfg *config.Config) (*pumpServer, error) { + // use the same redis database with authorization log history client := goredislib.NewClient(&goredislib.Options{ Addr: fmt.Sprintf("%s:%d", cfg.RedisOptions.Host, cfg.RedisOptions.Port), Username: cfg.RedisOptions.Username,