Skip to content

Commit 8d8d588

Browse files
committed
fixup create a redecryptor in event cache
1 parent 0566061 commit 8d8d588

File tree

1 file changed

+3
-4
lines changed
  • crates/matrix-sdk/src/event_cache

1 file changed

+3
-4
lines changed

crates/matrix-sdk/src/event_cache/mod.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ pub struct EventCacheDropHandles {
152152
auto_shrink_linked_chunk_task: JoinHandle<()>,
153153

154154
/// The task used to automatically redecrypt UTDs.
155-
redecryption_task: JoinHandle<()>,
155+
redecryptor: Redecryptor,
156156
}
157157

158158
impl fmt::Debug for EventCacheDropHandles {
@@ -166,7 +166,6 @@ impl Drop for EventCacheDropHandles {
166166
self.listen_updates_task.abort();
167167
self.ignore_user_list_update_task.abort();
168168
self.auto_shrink_linked_chunk_task.abort();
169-
self.redecryption_task.abort();
170169
}
171170
}
172171

@@ -263,13 +262,13 @@ impl EventCache {
263262
auto_shrink_receiver,
264263
));
265264

266-
let redecryption_task = Redecryptor::new(client, Arc::downgrade(&self.inner));
265+
let redecryptor = Redecryptor::new(client, Arc::downgrade(&self.inner));
267266

268267
Arc::new(EventCacheDropHandles {
269268
listen_updates_task,
270269
ignore_user_list_update_task,
271270
auto_shrink_linked_chunk_task,
272-
redecryption_task,
271+
redecryptor,
273272
})
274273
});
275274

0 commit comments

Comments
 (0)