Skip to content

Commit

Permalink
update response to handle thunder call failure
Browse files Browse the repository at this point in the history
  • Loading branch information
maggie98choy committed Oct 17, 2024
1 parent c697003 commit a4a09e5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion core/main/src/firebolt/handlers/device_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,15 @@ impl DeviceServer for DeviceImpl {

fn rpc_request_setter(response: Result<ExtnMessage, RippleError>) -> bool {
if response.clone().is_ok() {
return true;
if let Ok(res) = response {
if let Some(ExtnResponse::Value(v)) = res.payload.extract::<ExtnResponse>() {
if v.is_boolean() {
if let Some(b) = v.as_bool() {
return b;
}
}
}
}
}
false
}
Expand Down

0 comments on commit a4a09e5

Please sign in to comment.