diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2020-02-25 17:50:12 +0200 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2020-02-25 23:15:47 +0200 |
commit | 7c48611f9ee04e1320e1667ea0dae7c355a9935b (patch) | |
tree | 31b46f31184833165ee1d53f137e674fcc3069fb /platform/default | |
parent | 3c05bd984ada9e146e614165f009b9b45fb05992 (diff) | |
download | qtlocation-mapboxgl-7c48611f9ee04e1320e1667ea0dae7c355a9935b.tar.gz |
[core] Consolidate file source keys in the generic FileSource header
Thus we do not need to include specific headers to use `{set|get}Property`
API with key constants.
Diffstat (limited to 'platform/default')
-rw-r--r-- | platform/default/src/mbgl/storage/offline_download.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/default/src/mbgl/storage/offline_download.cpp b/platform/default/src/mbgl/storage/offline_download.cpp index 87927c5b98..89fd100aa7 100644 --- a/platform/default/src/mbgl/storage/offline_download.cpp +++ b/platform/default/src/mbgl/storage/offline_download.cpp @@ -373,7 +373,7 @@ void OfflineDownload::continueDownload() { if (resourcesToBeMarkedAsUsed.size() >= kMarkBatchSize) markPendingUsedResources(); uint32_t maxConcurrentRequests = util::DEFAULT_MAXIMUM_CONCURRENT_REQUESTS; - auto value = onlineFileSource.getProperty("max-concurrent-requests"); + auto value = onlineFileSource.getProperty(MAX_CONCURRENT_REQUESTS_KEY); if (uint64_t* maxRequests = value.getUint()) { maxConcurrentRequests = static_cast<uint32_t>(*maxRequests); } |