Skip to content

Commit bb39bce

Browse files
authored
style: Fix clang-tidy error (#2901)
1 parent bb3159b commit bb39bce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/util/Channel.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ class Channel {
141141
asyncSend(D&& data, boost::asio::yield_context yield)
142142
requires(std::convertible_to<std::remove_cvref_t<D>, std::remove_cvref_t<T>>)
143143
{
144-
boost::system::error_code ecIn, ecOut;
144+
boost::system::error_code const ecIn;
145+
boost::system::error_code ecOut;
145146
shared_->channel().async_send(ecIn, std::forward<D>(data), yield[ecOut]);
146147

147148
// Workaround: asio channels bug returns ec=0 on cancel, check isClosed() instead

0 commit comments

Comments
 (0)