aboutsummaryrefslogtreecommitdiff
path: root/src/endpoint.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-10-14 17:33:12 +0200
committerAlex Auvolat <alex@adnab.me>2021-10-14 17:33:12 +0200
commitcfa64bc745969cfc3684a70b45d71128f8335460 (patch)
tree7b70554e1eb897210a516f2af657e1d0b214ad08 /src/endpoint.rs
parent8a0bfa0ff6bc6b79c91c8e635dd00c2f687ec401 (diff)
downloadnetapp-cfa64bc745969cfc3684a70b45d71128f8335460.tar.gz
netapp-cfa64bc745969cfc3684a70b45d71128f8335460.zip
Add netapp function to drop all handlers
Diffstat (limited to 'src/endpoint.rs')
-rw-r--r--src/endpoint.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/endpoint.rs b/src/endpoint.rs
index 77d7468..f30b25e 100644
--- a/src/endpoint.rs
+++ b/src/endpoint.rs
@@ -120,7 +120,7 @@ pub(crate) type DynEndpoint = Box<dyn GenericEndpoint + Send + Sync>;
#[async_trait]
pub(crate) trait GenericEndpoint {
async fn handle(&self, buf: &[u8], from: NodeID) -> Result<Vec<u8>, Error>;
- fn clear_handler(&self);
+ fn drop_handler(&self);
fn clone_endpoint(&self) -> DynEndpoint;
}
@@ -148,7 +148,7 @@ where
}
}
- fn clear_handler(&self) {
+ fn drop_handler(&self) {
self.0.handler.swap(None);
}