better type_id for nested storages

This commit is contained in:
Igor Katson 2024-05-02 09:53:53 +01:00
parent 776c865781
commit 6233cc9d12
4 changed files with 22 additions and 2 deletions

View file

@ -99,7 +99,9 @@ impl SessionDatabase {
.iter()
// We don't support serializing / deserializing of other storage types.
.filter(|(_, torrent)| {
torrent.storage_factory.type_id() == TypeId::of::<FilesystemStorageFactory>()
torrent
.storage_factory
.is_type_id(TypeId::of::<FilesystemStorageFactory>())
})
.map(|(id, torrent)| {
(