[MM-60262] Respect config store option when creating platform service (#28038)
* Respect config store option when creating platform service * Remove ConfigStore from ServiceConfig
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
244b7e565b
Коммит
5ff680d20d
@@ -151,10 +151,12 @@ func setupTestHelper(dbStore store.Store, enterprise bool, includeCacheLayer boo
|
||||
*memoryConfig.MetricsSettings.ListenAddress = "localhost:0"
|
||||
configStore.Set(memoryConfig)
|
||||
|
||||
ps, err := New(ServiceConfig{
|
||||
ConfigStore: configStore,
|
||||
Store: dbStore,
|
||||
}, options...)
|
||||
options = append(options, ConfigStore(configStore))
|
||||
|
||||
ps, err := New(
|
||||
ServiceConfig{
|
||||
Store: dbStore,
|
||||
}, options...)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user