Skip to content

Commit 38ce219

Browse files
committed
wit world doc
Signed-off-by: Lucas Fontes <lucas@cosmonic.com>
1 parent 68ffead commit 38ce219

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

  • crates/wash-runtime/src/plugin/wasmcloud_messaging
  • templates/http-api-with-distributed-workloads/wit

crates/wash-runtime/src/plugin/wasmcloud_messaging/in_memory.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,7 @@ impl<'a> Host for ActiveCtx<'a> {
132132

133133
if !queue_full {
134134
notify.notify_one();
135-
}
136-
137-
if queue_full {
135+
} else {
138136
let mut req_lock = pending_requests.write().await;
139137
req_lock.remove(&reply_to);
140138
return Ok(Err("message queue full".to_string()));

templates/http-api-with-distributed-workloads/wit/world.wit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package wasmcloud:template@0.1.0;
22

3+
// wasi:http/incoming-handler is exported via wstd's #[http_server] proc macro,
4+
// so it does not appear explicitly in this world definition.
35
world http-api {
46
import wasmcloud:messaging/consumer@0.2.0;
57
}

0 commit comments

Comments
 (0)