فهرست منبع

Add Trio Telemetry URL, adjust docstring

Deniz Cengiz 1 هفته پیش
والد
کامیت
30f66ab42a

+ 1 - 1
Trio/Sources/Services/Telemetry/TelemetryAttestor.swift

@@ -16,7 +16,7 @@ import Swinject
 /// register endpoint) are sticky — recorded in PropertyPersistentFlags so
 /// subsequent cycles don't retry indefinitely.
 ///
-/// Wire protocol matches `nightscout/trio-telemetry` (branch `app-attest`):
+/// Wire protocol matches `nightscout/trio-telemetry`:
 ///   1. POST /api/auth/ios/challenge       → { "challenge": "<base64url>" }
 ///   2. POST /api/attest/register          (once per install)
 ///   3. /checkin                           (per ping, headers below)

+ 1 - 5
Trio/Sources/Services/Telemetry/TelemetryClient.swift

@@ -18,11 +18,7 @@ final class TelemetryClient: Injectable {
 
     // MARK: Endpoint configuration
 
-    // TODO: Replace with the production `trio-telemetry` base URL once the
-    // server PR (nightscout/trio-telemetry#3) is deployed. Auth happens via
-    // Apple App Attest — see `TelemetryAttestor` — so there is no static
-    // bearer token. While this constant is nil, `send()` no-ops cleanly.
-    private static let productionBaseURL: URL? = nil
+    private static let productionBaseURL: URL? = URL(string: "https://telemetry.triodocs.org/checkin")
 
     /// Effective base URL: respects the debug override in
     /// `PropertyPersistentFlags.telemetryDebugServerURL`, then falls back to