diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a30653..7c67174 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/di/db.go b/di/db.go index 31d1ab9..300b211 100644 --- a/di/db.go +++ b/di/db.go @@ -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")),