Skip to content

Commit

Permalink
Do not rerender same schedule twice (unless forced)
Browse files Browse the repository at this point in the history
  • Loading branch information
tailhook committed May 15, 2018
1 parent fcf6c88 commit 492dae0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/daemon/query/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ pub fn run(init: ResponderInit) {
debug!("Incoming request {:?}", request);
match request {
Request::NewSchedule(schedule) => {
if responder.schedule().hash == schedule.hash {
debug!("Same schedule");
continue;
}
// TODO(tailhook) check if .wasm exists
let new = compat::Responder::new(&schedule, &init.settings);
let id: String = thread_rng().gen_ascii_chars().take(24).collect();
Expand Down

0 comments on commit 492dae0

Please sign in to comment.