config pb

This commit is contained in:
mr 2024-07-18 16:18:27 +02:00
parent 8eb88dcd82
commit d273fdc57f

10
conf.go
View File

@ -32,9 +32,11 @@ func GetConfig() *Config {
} }
func SetConfig(url string, database string) *Config { func SetConfig(url string, database string) *Config {
instance = &Config{ once.Do(func() {
MongoUrl: url, instance = &Config{
MongoDatabase: database, MongoUrl: url,
} MongoDatabase: database,
}
})
return instance return instance
} }