This commit is contained in:
iraizo 2024-04-07 17:32:15 +02:00
parent ce0ac32143
commit eac36ad87b
No known key found for this signature in database
GPG key ID: 12A9EF3A7EA88D6C
2 changed files with 2 additions and 5 deletions

View file

@ -170,7 +170,7 @@ impl Service {
async fn handler(&self) -> Result<()> {
let mut presence_timers = FuturesUnordered::new();
let mut receiver = self.timer_receiver.lock().await;
let receiver = self.timer_receiver.lock().await;
loop {
tokio::select! {
event = receiver.recv_async() => {

View file

@ -25,10 +25,7 @@ use ruma::{
events::{push_rules::PushRulesEvent, receipt::ReceiptType, AnySyncEphemeralRoomEvent, GlobalAccountDataEventType},
push, uint, MilliSecondsSinceUnixEpoch, OwnedServerName, OwnedUserId, RoomId, ServerName, UInt, UserId,
};
use tokio::{
select,
sync::{Mutex, Semaphore},
};
use tokio::sync::{Mutex, Semaphore};
use tracing::{error, warn};
use crate::{services, utils::calculate_hash, Config, Error, PduEvent, Result};