[MM-60262] Respect config store option when creating platform service (#28038)

* Respect config store option when creating platform service

* Remove ConfigStore from ServiceConfig
Этот коммит содержится в:
Ben Schumacher
2024-08-28 07:02:09 +02:00
коммит произвёл GitHub
родитель 244b7e565b
Коммит 5ff680d20d
5 изменённых файлов: 40 добавлений и 35 удалений

Просмотреть файл

@@ -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)
}