diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2020-04-22 13:28:47 +0300 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2020-04-22 19:21:56 +0300 |
commit | 64c5b46d9e3827bf92fab5ff7a4abcf5e2db1ac0 (patch) | |
tree | cfe1ffbfcff07e4c882cc7fabcfea7d08319cea2 | |
parent | c75342e1d2dd7ed8412029fa2df7f65c044efa33 (diff) | |
download | qtlocation-mapboxgl-64c5b46d9e3827bf92fab5ff7a4abcf5e2db1ac0.tar.gz |
follow-up fixes after 16416
-rw-r--r-- | include/mbgl/style/source.hpp | 5 | ||||
-rw-r--r-- | test/storage/online_file_source.test.cpp | 1 |
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(); }); |