Skip to content

Commit

Permalink
Fix line length warnings in SignalManager
Browse files Browse the repository at this point in the history
  • Loading branch information
winsmith committed Sep 8, 2023
1 parent 231f0ea commit b89ef8d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Sources/TelemetryClient/SignalManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,13 @@ internal class SignalManager: SignalManageable {
}

/// Adds a signal to the process queue
func processSignal(_ signalType: TelemetrySignalType, for clientUser: String? = nil, floatValue: Double? = nil, with additionalPayload: [String: String] = [:], configuration: TelemetryManagerConfiguration) {
func processSignal(
_ signalType: TelemetrySignalType,
for clientUser: String? = nil,
floatValue: Double? = nil,
with additionalPayload: [String: String] = [:],
configuration: TelemetryManagerConfiguration
) {
DispatchQueue.global(qos: .utility).async {
let enrichedMetadata: [String: String] = configuration.metadataEnrichers
.map { $0.enrich(signalType: signalType, for: clientUser, floatValue: floatValue) }
Expand Down Expand Up @@ -225,7 +231,9 @@ private extension SignalManager {
}
#else
#if DEBUG
configuration.logHandler?.log(message: "[Telemetry] On this platform, Telemetry can't generate a unique user identifier. It is recommended you supply one yourself. More info: https://telemetrydeck.com/pages/signal-reference.html")
let line1 = "[Telemetry] On this platform, Telemetry can't generate a unique user identifier."
let line2 = "It is recommended you supply one yourself. More info: https://telemetrydeck.com/pages/signal-reference.html"
configuration.logHandler?.log(message: "\(line1) \(line2)")
#endif
return "unknown user \(DefaultSignalPayload.platform) \(DefaultSignalPayload.systemVersion) \(DefaultSignalPayload.buildNumber)"
#endif
Expand Down

0 comments on commit b89ef8d

Please sign in to comment.