File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
crates/matrix-sdk/src/event_cache Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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
158158impl 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
You can’t perform that action at this time.
0 commit comments