Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
#16416 follow-up
Browse files Browse the repository at this point in the history
  • Loading branch information
pozdnyakov committed Apr 22, 2020
1 parent d2e052a commit b4fa87b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions include/mbgl/style/source.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ class Source {
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;
Expand Down
2 changes: 1 addition & 1 deletion test/storage/online_file_source.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ 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));
EXPECT_LT(wait, resource.minimumUpdateInterval + Milliseconds(300));
loop.stop();
});

Expand Down

0 comments on commit b4fa87b

Please sign in to comment.