fix
This commit is contained in:
parent
0c437b2c75
commit
76ac1c4d62
@ -16,10 +16,10 @@ use crate::data::Notify;
|
|||||||
|
|
||||||
pub fn c_bot(c: &Context) {
|
pub fn c_bot(c: &Context) {
|
||||||
let h = async {
|
let h = async {
|
||||||
let mut notify = notify::get_request(100).await;
|
let mut notify = notify::get_request(20).await;
|
||||||
if notify == "err" {
|
if notify == "err" {
|
||||||
refresh(c);
|
refresh(c);
|
||||||
notify = notify::get_request(100).await;
|
notify = notify::get_request(20).await;
|
||||||
}
|
}
|
||||||
let notify: Notify = serde_json::from_str(¬ify).unwrap();
|
let notify: Notify = serde_json::from_str(¬ify).unwrap();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user