config pb

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

View File

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