MSP-1388 [v] DB->Db

This commit is contained in:
Leonid Nikolaev committed 2023-02-02 12:13:55 +03:00
1 parent 9e994624b7
commit a3f71c2593
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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:"Префикс ключей для модуля"`
}
+1 -1
View File
@@ -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 {