Skip to content

Commit

Permalink
Rename close to undeclare in zenoh-ext (#1286)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzypixelz authored Aug 2, 2024
1 parent 5d09cf7 commit ce4e9bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions zenoh-ext/src/publication_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,9 @@ impl<'a> PublicationCache<'a> {
})
}

/// Close this PublicationCache
/// Undeclare this [`PublicationCache`]`.
#[inline]
pub fn close(self) -> impl Resolve<ZResult<()>> + 'a {
pub fn undeclare(self) -> impl Resolve<ZResult<()>> + 'a {
ResolveFuture::new(async move {
let PublicationCache {
_queryable,
Expand Down
4 changes: 2 additions & 2 deletions zenoh-ext/src/querying_subscriber.rs
Original file line number Diff line number Diff line change
Expand Up @@ -722,9 +722,9 @@ impl<'a, Handler> FetchingSubscriber<'a, Handler> {
Ok(fetch_subscriber)
}

/// Close this FetchingSubscriber
/// Undeclare this [`FetchingSubscriber`]`.
#[inline]
pub fn close(self) -> impl Resolve<ZResult<()>> + 'a {
pub fn undeclare(self) -> impl Resolve<ZResult<()>> + 'a {
self.subscriber.undeclare()
}

Expand Down

0 comments on commit ce4e9bf

Please sign in to comment.