You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// The URL to get the latest available cycle number
@@ -66,12 +66,30 @@ impl Function for DownloadNavigationData {
66
66
typeReturnType = ();
67
67
68
68
asyncfnrun(&mutself) -> Result<Self::ReturnType>{
69
-
// Send an initial progress event TODO: remove these in a breaking version, these are only here for backwards compatibility
69
+
// Figure out total size of download (this request is acting like a HEAD since we don't have those in this environment. Nothing actually gets downloaded since we are constraining the range)
70
+
let request = NetworkRequestBuilder::new(&self.url)
71
+
.context("can't create new NetworkRequestBuilder")?
// We need to download the data in chunks of DOWNLOAD_CHUNK_SIZE_BYTES to avoid a timeout, so we need to keep track of a "working" accumulation of all responses
@@ -121,6 +139,12 @@ impl Function for DownloadNavigationData {
// Only close connection if DATABASE_STATE has already been initialized - otherwise we end up unnecessarily copying the bundled data and instantly replacing it (due to initialization logic in database state)
@@ -132,21 +156,6 @@ impl Function for DownloadNavigationData {
0 commit comments