fix: no need to pass in teh full object, a reference will do

This commit is contained in:
silver 2025-07-20 22:25:31 +01:00
parent a8bed0bacc
commit 43ef787d59
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D

View file

@ -168,7 +168,7 @@ pub mod committee {
use std::collections::HashMap;
use std::sync::Arc;
pub async fn check_committee(ctx: Arc<Context>) {
pub async fn check_committee(ctx: &Context) {
let db_lock = {
let data_read = ctx.data.read().await;
data_read.get::<DataBase>().expect("Expected Config in TypeMap.").clone()