Skip to content

Commit eef59bc

Browse files
committed
refactor(rpc): remove extra status code setting
Removes the explicit setting of `response.result = GGML_STATUS_FAILED` when `create_node` returns `nullptr` within `graph_compute`. Primary signal is the `false` return value in case of failure. Signed-off-by: Ville Vesilehto <[email protected]>
1 parent 72c447a commit eef59bc

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ggml/src/ggml-rpc/ggml-rpc.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1351,7 +1351,6 @@ bool rpc_server::graph_compute(const std::vector<uint8_t> & input, rpc_msg_graph
13511351
// If id was non-zero and create_node returned nullptr, it indicates a deserialization error.
13521352
if (graph->nodes[i] == nullptr && id != 0) {
13531353
GGML_LOG_ERROR("[%s] failed to create graph node %d (id=%" PRId64 ")\n", __func__, i, id);
1354-
response.result = GGML_STATUS_FAILED;
13551354
return false;
13561355
}
13571356
}

0 commit comments

Comments
 (0)