decreased render time and fixed clear all
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8f915d1020
commit
9ce96269df
@ -406,7 +406,7 @@ pub async fn clear(
|
||||
}
|
||||
|
||||
#[get("/clearall")]
|
||||
pub async fn clearAll(action: &State<ASender<Action>>) -> String {
|
||||
pub async fn clear_all(action: &State<ASender<Action>>) -> String {
|
||||
let r = action.lock().unwrap().send(Action::Clear);
|
||||
|
||||
if r.is_err() || r.ok().is_none() {
|
||||
|
@ -354,7 +354,8 @@ async fn main() -> GResult {
|
||||
animations::start_animation,
|
||||
animations::stop_animation,
|
||||
animations::clear,
|
||||
animations::delete
|
||||
animations::delete,
|
||||
animations::clear_all,
|
||||
],
|
||||
)
|
||||
.manage(conn_pool_arc.clone())
|
||||
|
@ -343,7 +343,7 @@ impl Render {
|
||||
self.last = data.clone();
|
||||
}
|
||||
|
||||
if time - self.last_update < 100 {
|
||||
if time - self.last_update < 10 {
|
||||
println!("To Fast! Skiping");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user