[MM-53195] services/telemetry: regen client config right after assigning diagnostic ID to platform (#23773)

Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2023-06-19 18:48:29 +03:00
коммит произвёл GitHub
родитель 58a7679daa
Коммит 0904be43f8
3 изменённых файлов: 25 добавлений и 1 удалений

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

@@ -381,6 +381,13 @@ func (ps *PlatformService) ShutdownConfig() error {
func (ps *PlatformService) SetTelemetryId(id string) {
ps.telemetryId = id
ps.PostTelemetryIdHook()
}
// PostTelemetryIdHook triggers necessary events to propagate telemtery ID
func (ps *PlatformService) PostTelemetryIdHook() {
ps.regenerateClientConfig()
}
func (ps *PlatformService) SetLogger(logger *mlog.Logger) {