Created
May 19, 2020 09:00
-
-
Save badboy/955b4e5f2ee73386dcd69717948e5792 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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