From a3f71c2593116dc6cbd4ad0d8c4375ff829137e9 Mon Sep 17 00:00:00 2001 From: Leonid Nikolaev Date: Thu, 2 Feb 2023 12:13:55 +0300 Subject: [PATCH] MSP-1388 [v] DB->Db --- conf/remote.go | 2 +- repository/locker.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/remote.go b/conf/remote.go index d1ff132..86cd3cd 100644 --- a/conf/remote.go +++ b/conf/remote.go @@ -27,7 +27,7 @@ type Redis struct { Password string `schema:"Пароль"` Sentinel *RedisSentinel `schema:"Настройки sentinel,обязательно, если address не указан"` - DB int `schema:"номер БД в redis"` + Db int `schema:"номер БД в redis"` Prefix string `schema:"Префикс ключей для модуля"` } diff --git a/repository/locker.go b/repository/locker.go index 57cc589..79fa60a 100644 --- a/repository/locker.go +++ b/repository/locker.go @@ -27,7 +27,7 @@ func NewLocker(logger log.Logger, cfg conf.Remote) Locker { Addr: cfg.Redis.Address, Username: cfg.Redis.Username, Password: cfg.Redis.Password, - DB: cfg.Redis.DB, + DB: cfg.Redis.Db, }) if cfg.Redis.Sentinel != nil {