better type_id for nested storages
This commit is contained in:
parent
776c865781
commit
6233cc9d12
4 changed files with 22 additions and 2 deletions
|
|
@ -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)| {
|
||||
(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue