Skip to content

Commit f732969

Browse files
committed
adjustments
1 parent f3a6a63 commit f732969

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

rust/Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/src/jit_proxy_client.rs

+11-2
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,18 @@ impl<T: AccountProvider> JitProxyClient<T> {
143143

144144
let tx = VersionedMessage::V0(message);
145145

146-
let sig = self.drift_client.sign_and_send(tx).await?;
146+
let sig = self.drift_client.sign_and_send(tx).await;
147+
148+
match sig {
149+
Ok(sig) => {
150+
return Ok(sig)
151+
}
152+
Err(e) => {
153+
log::error!("Jit: {}", e);
154+
return Ok(Signature::default())
155+
}
156+
}
147157

148-
Ok(sig)
149158

150159
} else {
151160
log::warn!("Order: {} not found", params.taker_order_id);

0 commit comments

Comments
 (0)