File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5454 telemetryUser string
5555
5656 // Shutdown channel
57- shutdownChan chan struct {}
57+ shutdownChan chan struct {}
5858 telemetryAuth string
5959
6060 // Debug logging
@@ -121,7 +121,7 @@ func getDefaultCredentials() string {
121121func Initialize (endpoint , apiKey string , enabled bool ) {
122122 // Initialize shutdown channel
123123 shutdownChan = make (chan struct {})
124-
124+
125125 // Check environment variable override
126126 if os .Getenv ("FIRE_TELEMETRY_DISABLED" ) == "true" {
127127 enabled = false
@@ -413,14 +413,14 @@ func backgroundFlusher() {
413413func Shutdown () {
414414 fmt .Printf ("[TELEMETRY] Shutdown called\n " )
415415 telemetryEnabled = false
416-
416+
417417 // Signal shutdown to background flusher
418418 if shutdownChan != nil {
419419 close (shutdownChan )
420420 // Give background flusher time to exit
421421 time .Sleep (100 * time .Millisecond )
422422 }
423-
423+
424424 FlushTelemetry ()
425425 fmt .Printf ("[TELEMETRY] Shutdown complete\n " )
426426}
You can’t perform that action at this time.
0 commit comments