Skip to content

Commit 6e29423

Browse files
committed
Fix docs warnings
1 parent 84fb6e2 commit 6e29423

File tree

8 files changed

+20
-13
lines changed

8 files changed

+20
-13
lines changed

mithril-aggregator/src/certifier_service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! ## Certifier Service
22
//!
33
//! This service is responsible of [OpenMessage] cycle of life. It creates open
4-
//! messages and turn them into [CertificateRecord]. To do so, it registers
4+
//! messages and turn them into [Certificate]. To do so, it registers
55
//! single signatures and deal with the multi_signer for aggregate signature
66
//! creation.
77
use std::sync::Arc;

mithril-aggregator/src/database/provider/open_message.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ impl OpenMessageRepository {
471471
Self { connection }
472472
}
473473

474-
/// Return the latest [OpenMessage] for the given Epoch and [SignedEntityType].
474+
/// Return the latest [OpenMessageRecord] for the given Epoch and [SignedEntityType].
475475
pub async fn get_open_message(
476476
&self,
477477
signed_entity_type: &SignedEntityType,
@@ -486,7 +486,7 @@ impl OpenMessageRepository {
486486
Ok(messages.next())
487487
}
488488

489-
/// Create a new [OpenMessage] in the database.
489+
/// Create a new [OpenMessageRecord] in the database.
490490
pub async fn create_open_message(
491491
&self,
492492
epoch: Epoch,
@@ -503,7 +503,7 @@ impl OpenMessageRepository {
503503
.ok_or_else(|| panic!("Inserting an open_message should not return nothing."))
504504
}
505505

506-
/// Updates an [OpenMessage] in the database.
506+
/// Updates an [OpenMessageRecord] in the database.
507507
pub async fn update_open_message(
508508
&self,
509509
open_message: &OpenMessageRecord,
@@ -518,7 +518,7 @@ impl OpenMessageRepository {
518518
.ok_or_else(|| panic!("Updating an open_message should not return nothing."))
519519
}
520520

521-
/// Remove all the [OpenMessage] for the given Epoch in the database.
521+
/// Remove all the [OpenMessageRecord] for the given Epoch in the database.
522522
/// It returns the number of messages removed.
523523
pub async fn clean_epoch(&self, epoch: Epoch) -> StdResult<usize> {
524524
let lock = self.connection.lock().await;

mithril-aggregator/src/dependency_injection/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ impl DependenciesBuilder {
864864
Ok(signer_recorder)
865865
}
866866

867-
/// [SignerRecorder]
867+
/// [SignerRecorder] service
868868
pub async fn get_signer_recorder(&mut self) -> Result<Arc<dyn SignerRecorder>> {
869869
if self.signer_recorder.is_none() {
870870
self.signer_recorder = Some(self.build_signer_recorder().await?);

mithril-aggregator/src/lib.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,14 @@ mod store;
3434
pub mod ticker_service;
3535
mod tools;
3636

37+
pub use crate::artifact_builder::{ArtifactBuilder, ArtifactBuilderService};
3738
pub use crate::configuration::{
3839
Configuration, DefaultConfiguration, ExecutionEnvironment, SnapshotUploaderType,
3940
};
4041
pub use crate::multi_signer::{MultiSigner, MultiSignerImpl, ProtocolError};
42+
pub use crate::signable_builder::{
43+
ImmutableSignableBuilder, MithrilStakeDistributionSignableBuilder, SignableBuilderService,
44+
};
4145
pub use crate::snapshot_stores::{LocalSnapshotStore, SnapshotStore};
4246
pub use command_args::MainOpts;
4347
pub use dependency::DependencyManager;
@@ -48,8 +52,8 @@ pub use runtime::{
4852
AggregatorConfig, AggregatorRunner, AggregatorRunnerTrait, AggregatorRuntime, RuntimeError,
4953
};
5054
pub use signer_registerer::{
51-
MithrilSignerRegisterer, SignerRegisterer, SignerRegistrationError, SignerRegistrationRound,
52-
SignerRegistrationRoundOpener,
55+
MithrilSignerRegisterer, SignerRecorder, SignerRegisterer, SignerRegistrationError,
56+
SignerRegistrationRound, SignerRegistrationRoundOpener,
5357
};
5458
pub use snapshot_uploaders::{
5559
DumbSnapshotUploader, LocalSnapshotUploader, RemoteSnapshotUploader, SnapshotUploader,

mithril-aggregator/src/signable_builder/immutable_signable_builder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use mithril_common::{
88
StdResult,
99
};
1010

11+
/// A [SignableBuilder] for cardano immutable files.
1112
pub struct ImmutableSignableBuilder {
1213
immutable_digester: Arc<dyn ImmutableDigester>,
1314
}

mithril-aggregator/src/signable_builder/mithril_stake_distribution.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use mithril_common::{
1111

1212
use crate::MultiSigner;
1313

14-
/// A [MithrilStakeDistributionSignable] builder
14+
/// A [SignableBuilder] for mithril stake distribution.
1515
pub struct MithrilStakeDistributionSignableBuilder {
1616
multi_signer: Arc<RwLock<dyn MultiSigner>>,
1717
}

mithril-common/src/crypto_helper/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ mod genesis;
88
pub mod tests_setup;
99
mod types;
1010

11-
pub use cardano::ColdKeyGenerator;
12-
pub use cardano::{KESPeriod, OpCert, SerDeShelleyFileFormat, Sum6KesBytes};
11+
pub use cardano::{
12+
ColdKeyGenerator, KESPeriod, OpCert, ProtocolInitializerErrorWrapper,
13+
ProtocolRegistrationErrorWrapper, SerDeShelleyFileFormat, Sum6KesBytes,
14+
};
1315
pub use codec::*;
1416
pub use era::{
1517
EraMarkersSigner, EraMarkersVerifier, EraMarkersVerifierError, EraMarkersVerifierSecretKey,

mithril-common/src/crypto_helper/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ pub type ProtocolGenesisSecretKey = ed25519_dalek::SecretKey;
7171
pub type ProtocolGenesisSignature = ed25519_dalek::Signature;
7272

7373
// Error alias
74-
/// Alias of a wrapper of [MithrilCommon:ProtocolRegistrationErrorWrapper](enum@mithril_common::ProtocolRegistrationErrorWrapper).
74+
/// Alias of a wrapper of [MithrilCommon:ProtocolRegistrationErrorWrapper](enum@ProtocolRegistrationErrorWrapper).
7575
pub type ProtocolRegistrationError = ProtocolRegistrationErrorWrapper;
7676

77-
/// Alias of a wrapper of [MithrilCommon:ProtocolInitializerErrorWrapper](enum@mithril_common::ProtocolInitializerErrorWrapper).
77+
/// Alias of a wrapper of [MithrilCommon:ProtocolInitializerErrorWrapper](enum@ProtocolInitializerErrorWrapper).
7878
pub type ProtocolInitializerError = ProtocolInitializerErrorWrapper;
7979

8080
/// Alias of [MithrilStm:AggregationError](enum@mithril_stm::AggregationError).

0 commit comments

Comments
 (0)