Skip to content

Commit

Permalink
reuse newStream (#2337)
Browse files Browse the repository at this point in the history
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
  • Loading branch information
turuslan authored Feb 20, 2025
1 parent afdc93c commit d017249
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/network/impl/protocols/state_protocol_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "network/adapters/protobuf_state_request.hpp"
#include "network/adapters/protobuf_state_response.hpp"
#include "network/common.hpp"
#include "network/helpers/new_stream.hpp"
#include "network/helpers/protobuf_message_read_writer.hpp"
#include "network/impl/protocols/protocol_error.hpp"

Expand Down Expand Up @@ -45,7 +46,8 @@ namespace kagome::network {
protocolName(),
peer_id);

base_.host().newStream(
newStream(
base_.host(),
peer_id,
base_.protocolIds(),
[wp{weak_from_this()}, peer_id, cb = std::move(cb)](
Expand Down

0 comments on commit d017249

Please sign in to comment.