MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / runtime_worker_handle_unsubscribe

Function runtime_worker_handle_unsubscribe

src/daemon/runtime.c:1228–1237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1226}
1227
1228static bool runtime_worker_handle_unsubscribe(cbm_daemon_runtime_worker_t *worker,
1229 const uint8_t *payload, uint32_t length) {
1230 if (!runtime_worker_service_running(worker) || !payload || length != UNSUBSCRIBE_REQUEST_SIZE) {
1231 return false;
1232 }
1233 cbm_daemon_subscription_id_t subscription_id = runtime_get_u64(payload);
1234 bool removed = cbm_daemon_job_unsubscribe(worker->service->coordinator, worker->client_id,
1235 subscription_id);
1236 return runtime_worker_send_status(worker, CBM_DAEMON_RUNTIME_OP_JOB_UNSUBSCRIBE, removed);
1237}
1238
1239static void *runtime_application_worker(void *opaque) {
1240 cbm_daemon_runtime_worker_t *worker = opaque;

Callers 1

Calls 4

runtime_get_u64Function · 0.85

Tested by

no test coverage detected