| 252 | } |
| 253 | |
| 254 | type service struct { |
| 255 | mu sync.RWMutex |
| 256 | flush func(payload SendTelemetryPayload) |
| 257 | previouslyCalled bool |
| 258 | |
| 259 | commonDimensions ghtelemetry.Dimensions |
| 260 | sampleRate int |
| 261 | sampleBucket byte |
| 262 | |
| 263 | events []recordedEvent |
| 264 | |
| 265 | disabled bool |
| 266 | } |
| 267 | |
| 268 | func (s *service) Disable() { |
| 269 | s.mu.Lock() |
nothing calls this directly
no outgoing calls
no test coverage detected