Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: luohaha <[email protected]>
  • Loading branch information
luohaha committed Sep 19, 2024
1 parent 734b429 commit 5700435
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion be/src/util/internal_service_recoverable_stub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ PInternalService_RecoverableStub::PInternalService_RecoverableStub(const butil::

PInternalService_RecoverableStub::~PInternalService_RecoverableStub() = default;

Status PInternalService_RecoverableStub::reset_channel(const std::string protocal) {
Status PInternalService_RecoverableStub::reset_channel(const std::string& protocal) {
std::lock_guard<std::mutex> l(_mutex);
brpc::ChannelOptions options;
options.connect_timeout_ms = config::rpc_connect_timeout_ms;
Expand Down
2 changes: 1 addition & 1 deletion be/src/util/internal_service_recoverable_stub.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class PInternalService_RecoverableStub : public PInternalService,
PInternalService_RecoverableStub(const butil::EndPoint& endpoint);
~PInternalService_RecoverableStub();

Status reset_channel(const std::string protocal = "");
Status reset_channel(const std::string& protocal = "");

#ifdef BE_TEST
PInternalService_Stub* stub() { return _stub.get(); }
Expand Down

0 comments on commit 5700435

Please sign in to comment.