From ceffa15763fe3f61621beb7fd400bc43d2aadc9e Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Wed, 21 May 2025 18:46:27 +0200 Subject: feat(db): disable redis and use local map to store values --- config.go | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'config.go') diff --git a/config.go b/config.go index 421f1b1..7a8c57b 100644 --- a/config.go +++ b/config.go @@ -9,10 +9,9 @@ import ( ) type Config struct { - Debug bool `toml:"debug"` - Author string `toml:"author"` - Redis *gokord.RedisCredentials `toml:"redis"` - Database *PostgresConfig `toml:"database"` + Debug bool `toml:"debug"` + Author string `toml:"author"` + Database *PostgresConfig `toml:"database"` } type PostgresConfig struct { @@ -55,14 +54,12 @@ func (c *Config) GetAuthor() string { } func (c *Config) GetRedisCredentials() *gokord.RedisCredentials { - return c.Redis + return nil } func (c *Config) SetDefaultValues() { c.Debug = false c.Author = "anhgelus" - c.Redis = &gokord.RedisCredentials{} - c.Redis.SetDefaultValues() c.Database = &PostgresConfig{} c.Database.SetDefaultValues() } -- cgit v1.2.3