This is an automated email from the ASF dual-hosted git repository. gkoszyk pushed a commit to branch metadata_module_init in repository https://gitbox.apache.org/repos/asf/iggy.git
commit 5a1d1e103f3bad500d3d52f2544c037c1e6ffda9 Author: numminex <[email protected]> AuthorDate: Mon Nov 17 20:53:19 2025 +0100 fix typo --- core/modules/consensus/src/lib.rs | 2 +- core/modules/messages/src/lib.rs | 6 +++--- core/modules/metadata/src/impls/metadata.rs | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/modules/consensus/src/lib.rs b/core/modules/consensus/src/lib.rs index 52d3ebe94..58091f7e6 100644 --- a/core/modules/consensus/src/lib.rs +++ b/core/modules/consensus/src/lib.rs @@ -15,7 +15,7 @@ // specific language governing permissions and limitations // under the License. -pub trait Consesus { +pub trait consensus { type RequestMessage; type ReplicateMessage; type AckMessage; diff --git a/core/modules/messages/src/lib.rs b/core/modules/messages/src/lib.rs index 61aedd2f5..07d9d24b4 100644 --- a/core/modules/messages/src/lib.rs +++ b/core/modules/messages/src/lib.rs @@ -19,6 +19,6 @@ pub mod consensus; -// TODO: I think this module should be part of consesus module -// There is potential for cyclic reference, as consesus requires messages, but messages require -// command type from consesus layer. +// TODO: I think this module should be part of consensus module +// There is potential for cyclic reference, as consensus requires messages, but messages require +// command type from consensus layer. diff --git a/core/modules/metadata/src/impls/metadata.rs b/core/modules/metadata/src/impls/metadata.rs index bd4990a0f..1ef56d6be 100644 --- a/core/modules/metadata/src/impls/metadata.rs +++ b/core/modules/metadata/src/impls/metadata.rs @@ -14,13 +14,13 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. -use consensus::Consesus; +use consensus::consensus; // TODO: Define a trait (probably in some external crate) #[expect(unused)] trait Metadata<C> where - C: Consesus, + C: consensus, { fn on_request(&self, message: C::RequestMessage); fn on_replicate(&self, message: C::ReplicateMessage); @@ -37,7 +37,7 @@ struct IggyMetadata<C, M, J, S> { impl<C, M, J, S> Metadata<C> for IggyMetadata<C, M, J, S> where - C: Consesus, + C: consensus, { fn on_request(&self, _message: C::RequestMessage) { todo!()
