Skip to content

Add ValidatorInfo to PeerContacts. #14122

Add ValidatorInfo to PeerContacts.

Add ValidatorInfo to PeerContacts. #14122

Triggered via pull request November 25, 2024 22:46
Status Success
Total duration 30m 24s
Artifacts 1

build+test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

1 warning
using `Option.and_then(|x| Some(y))`, which is more succinctly expressed as `map(|x| y)`: network-libp2p/src/discovery/peer_contacts.rs#L731
warning: using `Option.and_then(|x| Some(y))`, which is more succinctly expressed as `map(|x| y)` --> network-libp2p/src/discovery/peer_contacts.rs:731:34 | 731 | contact.validator_info = self.validator_record_signing.as_ref().and_then(|callback| { | __________________________________^ 732 | | let tagged_signed = (callback)(contact.peer_id(), contact.timestamp); 733 | | Some(ValidatorInfo { 734 | | validator_address: tagged_signed.record.validator_address.clone(), 735 | | signature: tagged_signed.signature.clone(), 736 | | }) 737 | | }); | |__________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bind_instead_of_map = note: `#[warn(clippy::bind_instead_of_map)]` on by default help: use `map` instead | 731 ~ contact.validator_info = self.validator_record_signing.as_ref().map(|callback| { 732 | let tagged_signed = (callback)(contact.peer_id(), contact.timestamp); 733 ~ ValidatorInfo { 734 + validator_address: tagged_signed.record.validator_address.clone(), 735 + signature: tagged_signed.signature.clone(), 736 + } |

Artifacts

Produced during runtime
Name Size
reconnect-test-logs
282 KB