Skip to content

Commit

Permalink
feat!: make body non-optional
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Volosatovs <[email protected]>
  • Loading branch information
rvolosatovs committed Mar 18, 2024
1 parent 458a610 commit e753745
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wit/messaging.wit
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface types {
// A message sent to or received from a broker
record broker-message {
subject: string,
body: option<list<u8>>,
body: list<u8>,
reply-to: option<string>,
}
}
Expand All @@ -28,7 +28,7 @@ interface consumer {
use types.{broker-message};

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

0 comments on commit e753745

Please sign in to comment.