mit-pdos / noria

Fast web applications through dynamic, partially-stateful dataflow
Apache License 2.0
4.99k stars 244 forks source link

Sort new domains before creating nodes #43

Closed ekmartin closed 6 years ago

ekmartin commented 6 years ago

This ensures deterministic indices and so on.

jonhoo commented 6 years ago

Just change

let mut sorted_new = new.iter().collect::<Vec<_>>();

to

let mut sorted_new = new.iter().cloned().collect::<Vec<_>>();