[Fix] Now using Axum instead of Hyper and Http2 instead of 1
This commit is contained in:
parent
fcdd13bfc8
commit
7f78c8669b
7 changed files with 110 additions and 518 deletions
|
|
@ -24,11 +24,3 @@ pub async fn get_random_omikron() -> Result<Arc<OmikronConnection>, ()> {
|
|||
return Err(());
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn get_omikron(omikron_id: i64) -> Option<Arc<OmikronConnection>> {
|
||||
if let Some(omikron) = OMIKRON_CONNECTIONS.get(&omikron_id) {
|
||||
Some(omikron.clone())
|
||||
} else {
|
||||
None
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue