Skip to content

Commit

Permalink
Merge pull request input-output-hk#1364 from jpraynaud/jpraynaud/fix-…
Browse files Browse the repository at this point in the history
…relay-doc
  • Loading branch information
jpraynaud authored Nov 23, 2023
2 parents b87cec8 + 39877d8 commit 75d3d1a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mithril-relay/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mithril-relay"
version = "0.1.0"
version = "0.1.1"
description = "A Mithril relay"
authors = { workspace = true }
edition = { workspace = true }
Expand Down
3 changes: 1 addition & 2 deletions mithril-relay/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![warn(missing_docs)]

//! Mithril relay modules
#![doc = include_str!("../README.md")]

mod commands;
/// Peer to peer module
Expand Down
2 changes: 1 addition & 1 deletion mithril-relay/src/p2p/error.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use thiserror::Error;

/// [EraMarkersPayload] related errors.
/// [Peer] related errors.
#[derive(Debug, Error)]
pub enum PeerError {
/// Topic does not exist
Expand Down
4 changes: 2 additions & 2 deletions mithril-relay/src/p2p/peer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ use std::{collections::HashMap, time::Duration};

use crate::{p2p::PeerError, MITHRIL_SIGNATURES_TOPIC_NAME};

/// Custom network behaviour
/// [Peer] custom network behaviour
#[derive(NetworkBehaviour)]
pub struct PeerBehaviour {
gossipsub: gossipsub::Behaviour,
ping: ping::Behaviour,
}

/// Peer event that is polled from the swarm
/// [Peer] event that is polled from the swarm
#[derive(Debug)]
pub enum PeerEvent {
/// The peer is listening on an address
Expand Down

0 comments on commit 75d3d1a

Please sign in to comment.