Skip to content

Commit

Permalink
okk
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyShi22 committed Oct 19, 2024
1 parent 46361a2 commit 29b0737
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bcos-boostssl/bcos-boostssl/websocket/WsConnector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ void WsConnector::connectToWsServer(const std::string& _host, uint16_t _port, bo
<< LOG_BADGE("connectToWsServer") << LOG_DESC("async_connect success")
<< LOG_KV("endpoint", endpoint);

auto wsStreamDelegate =
builder->build(_disableSsl, ctx, rawStream);
auto wsStreamDelegate = builder->build(_disableSsl, ctx, rawStream);

std::shared_ptr<std::string> nodeId = std::make_shared<std::string>();
wsStreamDelegate->setVerifyCallback(
Expand Down Expand Up @@ -135,7 +134,7 @@ void WsConnector::connectToWsServer(const std::string& _host, uint16_t _port, bo

// websocket async handshake
wsStreamDelegate->asyncWsHandshake(tmpHost, "/",
[this, connector, _host, _port, endpoint, _callback, wsStreamDelegate,
[connector, _host, _port, endpoint, _callback, wsStreamDelegate,
nodeId](boost::beast::error_code _ec) mutable {
if (_ec)
{
Expand Down

0 comments on commit 29b0737

Please sign in to comment.