fix lint error

This commit is contained in:
seemenkina
2025-12-14 17:05:31 +08:00
parent ee133746b5
commit 7d4cc6ef60
5 changed files with 5 additions and 9 deletions

View File

@@ -14,4 +14,3 @@ pub enum DeliveryServiceError {
#[error("An unknown error occurred: {0}")]
Other(anyhow::Error),
}

View File

@@ -1,6 +1,6 @@
pub mod error;
pub mod transport;
pub mod topic_filter;
pub mod transport;
pub mod waku;
pub use error::DeliveryServiceError;

View File

@@ -43,10 +43,7 @@ impl TopicFilter {
/// Remove all subtopics for a group.
pub async fn remove_many(&self, group_name: &str) {
self.list
.write()
.await
.retain(|x| x.group_id != group_name);
self.list.write().await.retain(|x| x.group_id != group_name);
}
/// Membership test (first-stage filter).

View File

@@ -4,8 +4,7 @@ use tracing::{debug, error, info};
use ds::{
transport::{InboundPacket, OutboundPacket},
APP_MSG_SUBTOPIC,
WELCOME_SUBTOPIC,
APP_MSG_SUBTOPIC, WELCOME_SUBTOPIC,
};
use crate::{

View File

@@ -360,7 +360,8 @@ async fn process_and_handle_trigger_event_message(
msgs_to_send.extend(wmts);
}
let waku_msgs_to_send: Vec<InboundPacket> = msgs_to_send.into_iter().map(outbound_to_inbound).collect();
let waku_msgs_to_send: Vec<InboundPacket> =
msgs_to_send.into_iter().map(outbound_to_inbound).collect();
let user_state = user
.get_group_state(GROUP_NAME)