Skip to content

Commit 2453deb

Browse files
authored
Merge pull request #1364 from jpraynaud/jpraynaud/fix-relay-doc
2 parents 221a003 + b07a6a6 commit 2453deb

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mithril-relay/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mithril-relay"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
description = "A Mithril relay"
55
authors = { workspace = true }
66
edition = { workspace = true }

mithril-relay/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![warn(missing_docs)]
2-
3-
//! Mithril relay modules
2+
#![doc = include_str!("../README.md")]
43

54
mod commands;
65
/// Peer to peer module

mithril-relay/src/p2p/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use thiserror::Error;
22

3-
/// [EraMarkersPayload] related errors.
3+
/// [Peer] related errors.
44
#[derive(Debug, Error)]
55
pub enum PeerError {
66
/// Topic does not exist

mithril-relay/src/p2p/peer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ use std::{collections::HashMap, time::Duration};
1414

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

17-
/// Custom network behaviour
17+
/// [Peer] custom network behaviour
1818
#[derive(NetworkBehaviour)]
1919
pub struct PeerBehaviour {
2020
gossipsub: gossipsub::Behaviour,
2121
ping: ping::Behaviour,
2222
}
2323

24-
/// Peer event that is polled from the swarm
24+
/// [Peer] event that is polled from the swarm
2525
#[derive(Debug)]
2626
pub enum PeerEvent {
2727
/// The peer is listening on an address

0 commit comments

Comments
 (0)