Skip to content

Commit

Permalink
debug log subcount
Browse files Browse the repository at this point in the history
  • Loading branch information
jb55 committed Dec 30, 2024
1 parent e8b6e25 commit 77fbc99
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ndb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@ impl Ndb {
pub fn unsubscribe(&mut self, sub: Subscription) -> Result<()> {
let r = unsafe { bindings::ndb_unsubscribe(self.as_ptr(), sub.id()) };

debug!(
"unsubscribed from {}, sub count {}",
sub.id(),
self.subscription_count()
);

// mark the subscription as done if it exists in our stream map
{
let mut map = self.subs.lock().unwrap();
Expand Down

0 comments on commit 77fbc99

Please sign in to comment.