Skip to content

Commit 384ea8c

Browse files
committed
Add From<CoreMethodsError> for ReplMethErr
1 parent 7626a17 commit 384ea8c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/replication/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ pub enum ReplicationMethodsError {
3030
/// Error from hypercore
3131
#[error("Got a hypercore error: [{0}]")]
3232
HypercoreError(#[from] HypercoreError),
33+
/// Error from CoreMethods
34+
#[error("Got a CoreMethods error: [{0}]")]
35+
CoreMethodsError(#[from] CoreMethodsError),
3336
}
3437

3538
/// Methods needed for replication
@@ -56,7 +59,7 @@ pub trait ReplicationMethods: CoreInfo + Send {
5659
fn event_subscribe(&self) -> impl Future<Output = Receiver<Event>>;
5760
}
5861

59-
/// Error for ReplicationMethods trait
62+
/// Error for CoreMethods trait
6063
#[derive(thiserror::Error, Debug)]
6164
pub enum CoreMethodsError {
6265
/// Error from hypercore

0 commit comments

Comments
 (0)