#Why is this looping infinitely?
22 messages · Page 1 of 1 (latest)
Please post your code examples and compiler output with code fences (```) around them. Example:
```rust
let (x, y) = (0, 42);
println!("Position at {}, {}", x, y);
```
let (x, y) = (0, 42);
println!("Position at {}, {}", x, y);
If the snippet is long or you want to demonstrate something, consider sharing it through the playground: https://play.rust-lang.org/ or https://www.rustexplorer.com/ or https://paste.rs/web.
Please avoid sharing screenshots of your code, as they're not very accessible. Using code fences or a shared snippet makes the code more readable and allows those helping you to copy-paste the code to help explain things.
ill try send 1 fn at a time
first send the concerned looping function
those are the 3 main fns
do one thing place a debug statement in the loop after setting status and see what value you get
do the same thing in that function
example?
so your function returns true if calculate path returns a some of some path is it doing that?
yeah
like a profitable path
and the reserves would be updated
could it be im not dereferencing?
is the function behaving as you are thinking it is?
ah got it
cool
it's because i was using a clone of shadow_paths and needed to update the original shadow_paths w/ new_paths