Skip to content

Commit c0ef518

Browse files
authored
fix: Remove vendored boost file to compile with boost 1.87. (#471)
BEGIN_COMMIT_OVERRIDE fix: Remove vendored boost file to compile with boost 1.87. fix: Update usage of the steady_timer to be compatible with boost 1.87. fix: Remove type alias import for JSON system_error that was removed in boost 1.87. END_COMMIT_OVERRIDE
1 parent b978ea4 commit c0ef518

File tree

5 files changed

+3
-495
lines changed

5 files changed

+3
-495
lines changed

libs/client-sdk/src/flag_manager/flag_store.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#include <boost/json/system_error.hpp>
2-
31
#include "flag_store.hpp"
42

53
#include <launchdarkly/encoding/sha_256.hpp>

libs/internal/src/events/asio_event_processor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ void AsioEventProcessor<SDK>::ScheduleFlush() {
168168
LD_LOG(logger_, LogLevel::kDebug) << "event-processor: scheduling flush in "
169169
<< flush_interval_.count() << "ms";
170170

171-
timer_.expires_from_now(flush_interval_);
171+
timer_.expires_after(flush_interval_);
172172
timer_.async_wait([this](boost::system::error_code ec) {
173173
if (ec) {
174174
LD_LOG(logger_, LogLevel::kDebug)

libs/internal/src/events/request_worker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ void RequestWorker::OnDeliveryAttempt(network::HttpResult const& result,
109109
<< tag_ << "error posting " << batch_->Count()
110110
<< " event(s) (will retry): HTTP error " << result.Status();
111111
}
112-
timer_.expires_from_now(retry_delay_);
112+
timer_.expires_after(retry_delay_);
113113
timer_.async_wait([this, callback](boost::system::error_code ec) {
114114
if (ec) {
115115
return;

libs/server-sent-events/src/client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class FoxyClient : public Client,
140140

141141
create_session();
142142
create_parser();
143-
backoff_timer_.expires_from_now(backoff_.delay());
143+
backoff_timer_.expires_after(backoff_.delay());
144144
backoff_timer_.async_wait(beast::bind_front_handler(
145145
&FoxyClient::on_backoff, shared_from_this()));
146146
}

0 commit comments

Comments
 (0)