[core] Build fix
Fix no viable conversion on OSX.
This commit is contained in:
@@ -25,7 +25,7 @@ extern const double MAX_ZOOM;
|
||||
|
||||
extern const uint64_t DEFAULT_MAX_CACHE_SIZE;
|
||||
|
||||
extern const Duration CLOCK_SKEW_RETRY_TIMEOUT;
|
||||
extern const SystemDuration CLOCK_SKEW_RETRY_TIMEOUT;
|
||||
|
||||
} // namespace util
|
||||
|
||||
|
||||
@@ -271,7 +271,7 @@ SystemTimePoint interpolateExpiration(const SystemTimePoint& current,
|
||||
// Assume that either the client or server clock is wrong and
|
||||
// try to interpolate a valid expiration date (from the client POV)
|
||||
// observing a minimum timeout.
|
||||
return now + std::max<Duration>(delta, util::CLOCK_SKEW_RETRY_TIMEOUT);
|
||||
return now + std::max<SystemDuration>(delta, util::CLOCK_SKEW_RETRY_TIMEOUT);
|
||||
}
|
||||
|
||||
void OnlineFileRequestImpl::schedule(OnlineFileSource::Impl& impl, optional<SystemTimePoint> expires) {
|
||||
|
||||
@@ -31,7 +31,7 @@ const double MAX_ZOOM = 25.5;
|
||||
|
||||
const uint64_t DEFAULT_MAX_CACHE_SIZE = 50 * 1024 * 1024;
|
||||
|
||||
const Duration CLOCK_SKEW_RETRY_TIMEOUT = Seconds(30);
|
||||
const SystemDuration CLOCK_SKEW_RETRY_TIMEOUT = Seconds(30);
|
||||
|
||||
} // namespace util
|
||||
|
||||
|
||||
Reference in New Issue
Block a user