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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
6 additions and
6 deletions
-
.github/workflows/clang-tidy.yml
-
cmake/Hunter/init.cmake
-
cmake/functions.cmake
-
include/libp2p/protocol/gossip/gossip.hpp
-
src/protocol/gossip/impl/stream.hpp
|
@ -10,7 +10,7 @@ on: |
|
|
|
|
|
|
|
|
jobs: |
|
|
jobs: |
|
|
build: |
|
|
build: |
|
|
runs-on: macOS-10.14 |
|
|
runs-on: macOS-latest |
|
|
steps: |
|
|
steps: |
|
|
- uses: actions/checkout@v1 |
|
|
- uses: actions/checkout@v1 |
|
|
name: checkout |
|
|
name: checkout |
|
|
|
@ -31,7 +31,7 @@ set( |
|
|
include(${CMAKE_CURRENT_LIST_DIR}/HunterGate.cmake) |
|
|
include(${CMAKE_CURRENT_LIST_DIR}/HunterGate.cmake) |
|
|
|
|
|
|
|
|
HunterGate( |
|
|
HunterGate( |
|
|
URL "https://github.com/soramitsu/soramitsu-hunter/archive/tags/v0.23.257-soramitsu11.tar.gz" |
|
|
URL "https://github.com/soramitsu/soramitsu-hunter/archive/tags/v0.23.257-soramitsu13.tar.gz" |
|
|
SHA1 "aa48b7125c3400c41c3229647b5a8152f0108470" |
|
|
SHA1 "8c88d8bac2dee771926b84a6e28642a267f88ea8" |
|
|
LOCAL |
|
|
LOCAL |
|
|
) |
|
|
) |
|
|
|
@ -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") |
|
|
message(FATAL_ERROR "Protobuf_INCLUDE_DIR is empty") |
|
|
endif () |
|
|
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 |
|
|
# get relative (to CMAKE_BINARY_DIR) path of current proto file |
|
|
file(RELATIVE_PATH SCHEMA_REL "${CMAKE_BINARY_DIR}/src" "${CMAKE_CURRENT_BINARY_DIR}") |
|
|
file(RELATIVE_PATH SCHEMA_REL "${CMAKE_BINARY_DIR}/src" "${CMAKE_CURRENT_BINARY_DIR}") |
|
|
|
|
|
|
|
|
|
@ -31,7 +31,7 @@ namespace libp2p { |
|
|
} |
|
|
} |
|
|
} // namespace crypto
|
|
|
} // namespace crypto
|
|
|
namespace peer { |
|
|
namespace peer { |
|
|
class IdentityManager; |
|
|
struct IdentityManager; |
|
|
} |
|
|
} |
|
|
} // namespace libp2p
|
|
|
} // namespace libp2p
|
|
|
|
|
|
|
|
|
|
@ -52,7 +52,7 @@ namespace libp2p::protocol::gossip { |
|
|
void endWrite(); |
|
|
void endWrite(); |
|
|
void asyncPostError(Error error); |
|
|
void asyncPostError(Error error); |
|
|
|
|
|
|
|
|
const size_t stream_id_; |
|
|
[[maybe_unused]] const size_t stream_id_; |
|
|
const Time timeout_; |
|
|
const Time timeout_; |
|
|
basic::Scheduler &scheduler_; |
|
|
basic::Scheduler &scheduler_; |
|
|
const size_t max_message_size_; |
|
|
const size_t max_message_size_; |
|
|