Skip to content

Instantly share code, notes, and snippets.

@badboy
Created May 19, 2020 09:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save badboy/955b4e5f2ee73386dcd69717948e5792 to your computer and use it in GitHub Desktop.
Save badboy/955b4e5f2ee73386dcd69717948e5792 to your computer and use it in GitHub Desktop.
diff --git glean-core/ios/Glean/Net/HttpPingUploader.swift glean-core/ios/Glean/Net/HttpPingUploader.swift
index bffaf32d..2bb977c5 100644
--- glean-core/ios/Glean/Net/HttpPingUploader.swift
+++ glean-core/ios/Glean/Net/HttpPingUploader.swift
@@ -100,13 +100,14 @@ public class HttpPingUploader {
/// It will continue upload as long as it can fetch new tasks.
func process() {
while true {
- let incomingTask = glean_get_upload_task()
+ var incomingTask = FfiPingUploadTask()
+ glean_get_upload_task(&incomingTask)
let task = incomingTask.toPingUploadTask()
switch task {
case let .upload(request):
self.upload(path: request.path, data: request.body, headers: request.headers) { result in
- glean_process_ping_upload_response(incomingTask, result.toFfi())
+ glean_process_ping_upload_response(&incomingTask, result.toFfi())
}
case .wait:
continue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment