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 20, 2024
1 parent 5700435 commit 3ddd99f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions be/src/util/internal_service_recoverable_stub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ 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& protocol) {
std::lock_guard<std::mutex> l(_mutex);
brpc::ChannelOptions options;
options.connect_timeout_ms = config::rpc_connect_timeout_ms;
if (protocal == "http") {
options.protocol = protocal;
if (protocol == "http") {
options.protocol = protocol;
} else {
// http does not support these.
options.connection_type = config::brpc_connection_type;
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& protocol = "");

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

0 comments on commit 3ddd99f

Please sign in to comment.