Skip to content

Commit

Permalink
fix clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
empiredan committed Nov 8, 2024
1 parent 41abbbd commit 2c34c1c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rpc/rpc_stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class rpc_write_stream : public binary_writer
public:
rpc_write_stream() = delete;

rpc_write_stream(message_ex *msg)
explicit rpc_write_stream(message_ex *msg)
: _msg(msg), _last_write_next_committed(true), _last_write_next_total_size(0)
{
}
Expand Down Expand Up @@ -138,6 +138,9 @@ class rpc_write_stream : public binary_writer
message_ex *_msg;
bool _last_write_next_committed;
int _last_write_next_total_size;

DISALLOW_COPY_AND_ASSIGN(rpc_write_stream);
DISALLOW_MOVE_AND_ASSIGN(rpc_write_stream);
};

using rpc_write_stream_ptr = dsn::ref_ptr<rpc_write_stream>;
Expand Down

0 comments on commit 2c34c1c

Please sign in to comment.