From 64cbc9911dfd43af0c29034d92656b55bc16217a Mon Sep 17 00:00:00 2001 From: Mikhail Pozdnyakov Date: Fri, 17 Apr 2020 14:27:46 +0300 Subject: [core] Introduce `Resource::minimumUpdateInterval` Introduce `Resource::minimumUpdateInterval` and consider it in the online file source. The `minimumUpdateInterval` is used to throttle the requests, which were initiated due to resource expiration. --- include/mbgl/storage/resource.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/mbgl/storage/resource.hpp b/include/mbgl/storage/resource.hpp index b21265ef54..b7b394efc2 100644 --- a/include/mbgl/storage/resource.hpp +++ b/include/mbgl/storage/resource.hpp @@ -95,6 +95,7 @@ public: optional priorExpires = {}; optional priorEtag = {}; std::shared_ptr priorData; + Duration minimumUpdateInterval{Duration::zero()}; }; inline bool Resource::hasLoadingMethod(Resource::LoadingMethod method) const { -- cgit v1.2.1