fix: make template build, lint and test cleanly out of the box

This commit is contained in:
2026-09-25 09:05:40 +03:00
parent f3452876da
commit f0e09ef8c9
24 changed files with 128 additions and 244 deletions
+6
View File
@@ -17,6 +17,12 @@ func (p *Plugin) uninitTelemetry() error {
}
func (p *Plugin) initTelemetry(enableDiagnostics *bool) error {
// Ключи RudderStack задаются при сборке (MM_RUDDER_CALLS_PROD, MM_RUDDER_DATAPLANE_URL).
// Без них телеметрия просто выключена.
if rudderWriteKey == "" || rudderDataplaneURL == "" {
return nil
}
p.mut.Lock()
defer p.mut.Unlock()
if p.telemetry == nil && enableDiagnostics != nil && *enableDiagnostics {