mirror of
https://github.com/element-hq/synapse.git
synced 2026-08-29 01:18:30 +00:00
Note lack of __clear__
This commit is contained in:
@@ -67,6 +67,9 @@ impl ThreadAggregation {
|
||||
|
||||
/// The Python GC needs to know that this object references the latest
|
||||
/// event.
|
||||
///
|
||||
/// Note that we don't need to implement `__clear__` because we cannot have
|
||||
/// reference cycles.
|
||||
fn __traverse__(&self, visit: PyVisit<'_>) -> Result<(), PyTraverseError> {
|
||||
visit.call(&self.latest_event)?;
|
||||
Ok(())
|
||||
@@ -130,6 +133,9 @@ impl BundledAggregations {
|
||||
|
||||
/// The Python GC needs to know that this object references the latest
|
||||
/// event.
|
||||
///
|
||||
/// Note that we don't need to implement `__clear__` because we cannot have
|
||||
/// reference cycles.
|
||||
fn __traverse__(&self, visit: PyVisit<'_>) -> Result<(), PyTraverseError> {
|
||||
visit.call(&self.replace)?;
|
||||
visit.call(&self.thread)?;
|
||||
|
||||
Reference in New Issue
Block a user