Browse Source

update hunter, fix protobuf (#163)

Signed-off-by: turuslan <turuslan.devbox@gmail.com>
pull/169/head
Ruslan Tushov 3 years ago
committed by GitHub
parent
commit
91d58f28bb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .github/workflows/clang-tidy.yml
  2. 4
      cmake/Hunter/init.cmake
  3. 2
      cmake/functions.cmake
  4. 2
      include/libp2p/protocol/gossip/gossip.hpp
  5. 2
      src/protocol/gossip/impl/stream.hpp

2
.github/workflows/clang-tidy.yml

@ -10,7 +10,7 @@ on:
jobs:
build:
runs-on: macOS-10.14
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
name: checkout

4
cmake/Hunter/init.cmake

@ -31,7 +31,7 @@ set(
include(${CMAKE_CURRENT_LIST_DIR}/HunterGate.cmake)
HunterGate(
URL "https://github.com/soramitsu/soramitsu-hunter/archive/tags/v0.23.257-soramitsu11.tar.gz"
SHA1 "aa48b7125c3400c41c3229647b5a8152f0108470"
URL "https://github.com/soramitsu/soramitsu-hunter/archive/tags/v0.23.257-soramitsu13.tar.gz"
SHA1 "8c88d8bac2dee771926b84a6e28642a267f88ea8"
LOCAL
)

2
cmake/functions.cmake

@ -61,7 +61,7 @@ function(compile_proto_to_cpp PROTO_LIBRARY_NAME PB_H PB_CC PROTO)
message(FATAL_ERROR "Protobuf_INCLUDE_DIR is empty")
endif ()
get_filename_component(PROTO_ABS "${PROTO}" REALPATH)
get_filename_component(PROTO_ABS "${PROTO}" ABSOLUTE)
# get relative (to CMAKE_BINARY_DIR) path of current proto file
file(RELATIVE_PATH SCHEMA_REL "${CMAKE_BINARY_DIR}/src" "${CMAKE_CURRENT_BINARY_DIR}")

2
include/libp2p/protocol/gossip/gossip.hpp

@ -31,7 +31,7 @@ namespace libp2p {
}
} // namespace crypto
namespace peer {
class IdentityManager;
struct IdentityManager;
}
} // namespace libp2p

2
src/protocol/gossip/impl/stream.hpp

@ -52,7 +52,7 @@ namespace libp2p::protocol::gossip {
void endWrite();
void asyncPostError(Error error);
const size_t stream_id_;
[[maybe_unused]] const size_t stream_id_;
const Time timeout_;
basic::Scheduler &scheduler_;
const size_t max_message_size_;

Loading…
Cancel
Save