Reduce number of Tokio workers (#129)

This commit is contained in:
Ulyssa 2023-07-05 15:25:42 -07:00
parent 8d4539831f
commit 61aba80be1
No known key found for this signature in database
GPG key ID: 1B3965A3D18B9B64
7 changed files with 232 additions and 258 deletions

View file

@ -120,11 +120,12 @@ impl<'a> StatefulWidget for Space<'a> {
let items = members
.into_iter()
.filter_map(|id| {
let (room, name, tags) =
let (room, _, tags) =
self.store.application.worker.get_room(id.clone()).ok()?;
let room_info = std::sync::Arc::new((room, tags));
if id != state.room_id {
Some(RoomItem::new(room, name, tags, self.store))
Some(RoomItem::new(room_info, self.store))
} else {
None
}