Skip to content

Commit

Permalink
Keep Empty in the API
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchalmers committed Sep 20, 2024
1 parent 334add8 commit 746a540
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/wasm-lib/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions src/wasm-lib/kcl/src/engine/conn_mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use anyhow::Result;
use indexmap::IndexMap;
use kcmc::{
ok_response::OkModelingCmdResponse,
output as mout,
websocket::{
BatchResponse, ModelingBatch, OkWebSocketResponseData, SuccessWebSocketResponse, WebSocketRequest,
WebSocketResponse,
Expand Down Expand Up @@ -72,7 +71,7 @@ impl crate::engine::EngineManager for EngineConnection {
responses.insert(
request.cmd_id,
BatchResponse::Success {
response: OkModelingCmdResponse::StartPath(mout::StartPath {}),
response: OkModelingCmdResponse::Empty {},
},
);
}
Expand All @@ -85,7 +84,7 @@ impl crate::engine::EngineManager for EngineConnection {
_ => Ok(WebSocketResponse::Success(SuccessWebSocketResponse {
request_id: Some(id),
resp: OkWebSocketResponseData::Modeling {
modeling_response: OkModelingCmdResponse::StartPath(mout::StartPath {}),
modeling_response: OkModelingCmdResponse::Empty {},
},
success: true,
})),
Expand Down
2 changes: 1 addition & 1 deletion src/wasm-lib/kcl/src/engine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ pub trait EngineManager: std::fmt::Debug + Send + Sync + 'static {
// Return early if we have no commands to send.
if all_requests.is_empty() {
return Ok(OkWebSocketResponseData::Modeling {
modeling_response: OkModelingCmdResponse::StartPath(kcmc::output::StartPath {}),
modeling_response: OkModelingCmdResponse::Empty {},
});
}

Expand Down

0 comments on commit 746a540

Please sign in to comment.