Skip to content

Commit e3a6fe7

Browse files
ci: expand and fix checks (#165)
* expand and fix ci * remove --tests flag from no-all-futures tests * Modify README --------- Co-authored-by: Age Manning <[email protected]>
1 parent ce07bc1 commit e3a6fe7

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Get latest version of stable rust
3131
run: rustup update stable
3232
- name: Run tests in release
33-
run: cargo test --all --release --tests
33+
run: cargo test --all --release
3434
test-all-features:
3535
runs-on: ubuntu-latest
3636
container:
@@ -43,7 +43,7 @@ jobs:
4343
- name: Install protobuf compiler for the libp2p-core dependency
4444
uses: arduino/setup-protoc@v1
4545
- name: Run tests in release
46-
run: cargo test --all --release --all-features --tests
46+
run: cargo test --all --release --all-features
4747
check-rustdoc-links:
4848
name: Check rustdoc intra-doc links
4949
runs-on: ubuntu-latest

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ A simple example of creating this service is as follows:
5858
let config = Discv5ConfigBuilder::new().build();
5959

6060
// construct the discv5 server
61-
let mut discv5 = Discv5::new(enr, enr_key, config).unwrap();
61+
let mut discv5: Discv5 = Discv5::new(enr, enr_key, config).unwrap();
6262

6363
// In order to bootstrap the routing table an external ENR should be added
6464
// This can be done via add_enr. I.e.:

examples/request_enr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async fn main() {
4646
.expect("A multiaddr must be supplied");
4747

4848
// construct the discv5 server
49-
let mut discv5 = Discv5::new(enr, enr_key, config).unwrap();
49+
let mut discv5: Discv5 = Discv5::new(enr, enr_key, config).unwrap();
5050

5151
// start the discv5 service
5252
discv5.start(listen_addr).await.unwrap();

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
//! let config = Discv5ConfigBuilder::new().build();
7979
//!
8080
//! // construct the discv5 server
81-
//! let mut discv5 = Discv5::new(enr, enr_key, config).unwrap();
81+
//! let mut discv5: Discv5 = Discv5::new(enr, enr_key, config).unwrap();
8282
//!
8383
//! // In order to bootstrap the routing table an external ENR should be added
8484
//! // This can be done via add_enr. I.e.:

0 commit comments

Comments
 (0)