Skip to content

Commit

Permalink
Don't crash if transaction submission fails
Browse files Browse the repository at this point in the history
  • Loading branch information
zbuc committed Jun 17, 2024
1 parent 4d9c57a commit 886c1c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/trader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ where
?plan,
"failed to update position"
);
return Err(e);
// Don't return the error here, just log it
// and keep looping
continue;
}
};

Expand Down

0 comments on commit 886c1c0

Please sign in to comment.