Remove deprecated API usage

Summary: related to T13767

Reviewers: ivica

Reviewed By: ivica

Subscribers: miljen, iljazovic

Differential Revision: https://repo.mireo.local/D28958
This commit is contained in:
Korina Šimičević
2024-04-16 08:31:44 +02:00
parent ccc8d48efc
commit bfae05f7a9
7 changed files with 22 additions and 13 deletions

View File

@@ -112,7 +112,7 @@ public:
}
void backoff_and_reconnect() {
_owner._connect_timer.expires_from_now(_generator.generate());
_owner._connect_timer.expires_after(_generator.generate());
_owner._connect_timer.async_wait(
asio::prepend(std::move(*this), on_backoff {})
);
@@ -151,7 +151,7 @@ public:
);
// wait max 5 seconds for the connect (handshake) op to finish
_owner._connect_timer.expires_from_now(std::chrono::seconds(5));
_owner._connect_timer.expires_after(std::chrono::seconds(5));
auto init_connect = [](
auto handler, typename Owner::stream_type& stream,