Skip to content

Commit e753745

Browse files
committed
feat!: make body non-optional
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
1 parent 458a610 commit e753745

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wit/messaging.wit

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface types {
1212
// A message sent to or received from a broker
1313
record broker-message {
1414
subject: string,
15-
body: option<list<u8>>,
15+
body: list<u8>,
1616
reply-to: option<string>,
1717
}
1818
}
@@ -28,7 +28,7 @@ interface consumer {
2828
use types.{broker-message};
2929

3030
// Perform a request operation on a subject
31-
request: func(subject: string, body: option<list<u8>>, timeout-ms: u32) -> result<broker-message, string>;
31+
request: func(subject: string, body: list<u8>, timeout-ms: u32) -> result<broker-message, string>;
3232
// Publish a message to a subject without awaiting a response
3333
publish: func(msg: broker-message) -> result<_, string>;
3434
}

0 commit comments

Comments
 (0)