need mutable ndb reference to unsubscribe
Closes: https://github.com/damus-io/notedeck/pull/584
This commit is contained in:
committed by
William Casarin
parent
926a3f80f4
commit
0c29c89909
@@ -37,7 +37,7 @@ impl MultiSubscriber {
|
||||
})
|
||||
}
|
||||
|
||||
pub fn unsubscribe(&mut self, ndb: &Ndb, pool: &mut RelayPool) {
|
||||
pub fn unsubscribe(&mut self, ndb: &mut Ndb, pool: &mut RelayPool) {
|
||||
if self.subscribers == 0 {
|
||||
error!("No subscribers to unsubscribe from");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user