Browse Source

Put reloading flag outside of the loop to keep the state of reloading

tags/v0.3.1-rc
haixuanTao 2 years ago
parent
commit
ab3fde910a
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      binaries/runtime/src/operator/python.rs

+ 1
- 2
binaries/runtime/src/operator/python.rs View File

@@ -120,9 +120,8 @@ pub fn run(
}
};

let mut reload = false;
let reason = loop {
let mut reload = false;

#[allow(unused_mut)]
let Ok(mut event) = incoming_events.recv() else { break StopReason::InputsClosed };



Loading…
Cancel
Save