File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 30
30
- name : Get latest version of stable rust
31
31
run : rustup update stable
32
32
- name : Run tests in release
33
- run : cargo test --all --release --tests
33
+ run : cargo test --all --release
34
34
test-all-features :
35
35
runs-on : ubuntu-latest
36
36
container :
43
43
- name : Install protobuf compiler for the libp2p-core dependency
44
44
uses : arduino/setup-protoc@v1
45
45
- name : Run tests in release
46
- run : cargo test --all --release --all-features --tests
46
+ run : cargo test --all --release --all-features
47
47
check-rustdoc-links :
48
48
name : Check rustdoc intra-doc links
49
49
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ A simple example of creating this service is as follows:
58
58
let config = Discv5ConfigBuilder :: new (). build ();
59
59
60
60
// 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 ();
62
62
63
63
// In order to bootstrap the routing table an external ENR should be added
64
64
// This can be done via add_enr. I.e.:
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ async fn main() {
46
46
. expect ( "A multiaddr must be supplied" ) ;
47
47
48
48
// 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 ( ) ;
50
50
51
51
// start the discv5 service
52
52
discv5. start ( listen_addr) . await . unwrap ( ) ;
Original file line number Diff line number Diff line change 78
78
//! let config = Discv5ConfigBuilder::new().build();
79
79
//!
80
80
//! // 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();
82
82
//!
83
83
//! // In order to bootstrap the routing table an external ENR should be added
84
84
//! // This can be done via add_enr. I.e.:
You can’t perform that action at this time.
0 commit comments