Fix default redis pool size value

This commit is contained in:
ErickSkrauch 2020-05-01 03:56:41 +03:00
parent 66ef76ce6d
commit dfe024756e
2 changed files with 2 additions and 2 deletions

View File

@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Handle the case when there is no textures property in Mojang's response.
- Handle `SIGTERM` as a valid stop signal for a graceful shutdown since it's the default stop code for the Docker.
- Default connections pool size for Redis.
### Changed
- `ely.skinsystem.{hostname}.app.mojang_textures.usernames.round_time` timer will not be recorded if the iteration was

View File

@ -25,7 +25,6 @@ var db = di.Options(
di.Provide(newRedis,
di.As(new(http.SkinsRepository)),
di.As(new(mojangtextures.UUIDsStorage)),
di.As(new(es.RedisPoolCheckable)),
),
di.Provide(newFSFactory,
di.As(new(http.CapesRepository)),
@ -36,7 +35,7 @@ var db = di.Options(
func newRedis(container *di.Container, config *viper.Viper) (*redis.Redis, error) {
config.SetDefault("storage.redis.host", "localhost")
config.SetDefault("storage.redis.port", 6379)
config.SetDefault("storage.redis.poll", 10)
config.SetDefault("storage.redis.poolSize", 10)
conn, err := redis.New(
fmt.Sprintf("%s:%d", config.GetString("storage.redis.host"), config.GetInt("storage.redis.port")),