Drop every rumour. Used by tests and on shutdown.
(&self)
| 53 | |
| 54 | /// Drop every rumour. Used by tests and on shutdown. |
| 55 | pub fn clear(&self) { |
| 56 | self.inner |
| 57 | .lock() |
| 58 | .expect("dissemination lock poisoned") |
| 59 | .clear(); |
| 60 | } |
| 61 | |
| 62 | /// Return up to `max` least-disseminated updates for a single |
| 63 | /// outgoing message. Increments each returned entry's `sent_count` |