matrix: login_and_sync does not need to be generic

This commit is contained in:
2025-05-15 21:06:54 +00:00
parent 3fee20f0cf
commit 73ee8114ca
2 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ async fn main() -> anyhow::Result<()> {
// This message passing channel is used for sending messages to the matrix module,
// it holds a tuple with an HTML message and a list of rooms to post to
let (bcast_tx, bcast_rx) = broadcast::channel(1024);
let (bcast_tx, bcast_rx) = broadcast::channel::<(String, Vec<String>)>(1024);
let handles: Vec<JoinHandle<_>> = config.feeds.clone().into_iter().map(|feed_config| {
let state_db = Arc::clone(&state_db);
@ -131,7 +131,7 @@ async fn main() -> anyhow::Result<()> {
})
}).collect();
login_and_sync::<(String, Vec<String>)>(
login_and_sync(
config.homeserver_uri.clone().into(),
&config.username,
&config.password,

View File

@ -85,7 +85,7 @@ async fn send_to_room(
};
}
pub async fn login_and_sync<T: Clone>(
pub async fn login_and_sync(
homeserver_url: String,
username: &str,
password: &str,