summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2020-04-22 13:28:47 +0300
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2020-04-22 17:24:42 +0300
commitc192126a1b954a72d87f73c6ca372b7398498691 (patch)
treecfe1ffbfcff07e4c882cc7fabcfea7d08319cea2
parentfe54eccb2d4f960bbbc3a221d4a326c382c71c34 (diff)
downloadqtlocation-mapboxgl-upstream/mikhail_volatile_source.tar.gz
follow-up fixes after 16416upstream/mikhail_volatile_source
-rw-r--r--include/mbgl/style/source.hpp5
-rw-r--r--test/storage/online_file_source.test.cpp1
2 files changed, 3 insertions, 3 deletions
diff --git a/include/mbgl/style/source.hpp b/include/mbgl/style/source.hpp
index e6208294ca..eada63d12d 100644
--- a/include/mbgl/style/source.hpp
+++ b/include/mbgl/style/source.hpp
@@ -82,8 +82,9 @@ public:
optional<uint8_t> getPrefetchZoomDelta() const noexcept;
// If the given source supports loading tiles from a server,
- // sets the minimum tile update interval, which is used to
- // throttle the tile update network requests.
+ // sets the minimum tile update interval.
+ // Update network requests that are more frequent than the
+ // minimum tile update interval are suppressed.
//
// Default value is `Duration::zero()`.
void setMinimumTileUpdateInterval(Duration) noexcept;
diff --git a/test/storage/online_file_source.test.cpp b/test/storage/online_file_source.test.cpp
index 050b9d0f3f..6aba83de09 100644
--- a/test/storage/online_file_source.test.cpp
+++ b/test/storage/online_file_source.test.cpp
@@ -229,7 +229,6 @@ TEST(OnlineFileSource, TEST_REQUIRES_SERVER(RespectMinimumUpdateInterval)) {
std::unique_ptr<AsyncRequest> req = fs->request(resource, [&](Response) {
auto wait = util::now() - start;
EXPECT_GE(wait, resource.minimumUpdateInterval);
- EXPECT_LT(wait, resource.minimumUpdateInterval + Milliseconds(10));
loop.stop();
});