Skip to content

Commit

Permalink
pr comment
Browse files Browse the repository at this point in the history
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
  • Loading branch information
turuslan committed Feb 13, 2025
1 parent ec6b81b commit c98fdc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions core/network/impl/protocols/sync_protocol_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "network/types/blocks_response.hpp"

namespace kagome::network {
constexpr std::chrono::seconds kRequestTimeout{20};

namespace detail {
BlocksResponseCache::BlocksResponseCache(
Expand Down Expand Up @@ -138,6 +139,7 @@ namespace kagome::network {
log::createLogger(kSyncProtocolName, "sync_protocol")),
scheduler_{std::move(scheduler)},
metrics_{kSyncProtocolName},
timeout_{kRequestTimeout},
sync_observer_(std::move(sync_observer)),
reputation_repository_(std::move(reputation_repository)),
response_cache_(kResponsesCacheCapacity,
Expand Down
2 changes: 1 addition & 1 deletion core/network/impl/protocols/sync_protocol_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ namespace kagome::network {
friend RequestResponseTimeout;
std::shared_ptr<libp2p::basic::Scheduler> scheduler_;
RequestResponseMetrics metrics_;
std::chrono::seconds timeout_{20};
std::chrono::milliseconds timeout_;
std::shared_ptr<SyncProtocolObserver> sync_observer_;
std::shared_ptr<ReputationRepository> reputation_repository_;
detail::BlocksResponseCache response_cache_;
Expand Down

0 comments on commit c98fdc0

Please sign in to comment.