Skip to content

Commit 886c1c0

Browse files
committed
Don't crash if transaction submission fails
1 parent 4d9c57a commit 886c1c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/trader.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,9 @@ where
231231
?plan,
232232
"failed to update position"
233233
);
234-
return Err(e);
234+
// Don't return the error here, just log it
235+
// and keep looping
236+
continue;
235237
}
236238
};
237239

0 commit comments

Comments
 (0)