From a4a09e5f11b466f5371926717b26ffdd79bbd37a Mon Sep 17 00:00:00 2001 From: maggie98choy Date: Thu, 17 Oct 2024 09:34:43 -0700 Subject: [PATCH] update response to handle thunder call failure --- core/main/src/firebolt/handlers/device_rpc.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/core/main/src/firebolt/handlers/device_rpc.rs b/core/main/src/firebolt/handlers/device_rpc.rs index c8be2a6b9..cb5bb60f0 100644 --- a/core/main/src/firebolt/handlers/device_rpc.rs +++ b/core/main/src/firebolt/handlers/device_rpc.rs @@ -762,7 +762,15 @@ impl DeviceServer for DeviceImpl { fn rpc_request_setter(response: Result) -> bool { if response.clone().is_ok() { - return true; + if let Ok(res) = response { + if let Some(ExtnResponse::Value(v)) = res.payload.extract::() { + if v.is_boolean() { + if let Some(b) = v.as_bool() { + return b; + } + } + } + } } false }