fix: no need to pass in teh full object, a reference will do
This commit is contained in:
parent
a8bed0bacc
commit
43ef787d59
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue