Skip to content

Commit

Permalink
chore: add semicolons
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Volosatovs <[email protected]>
  • Loading branch information
rvolosatovs committed Nov 21, 2023
1 parent f3b0a68 commit a1e4431
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions wit/messaging.wit
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Note that in this phase 1 interface, subscriptions are defined out of band from this
// component. Components themselves cannot establish or terminate subscriptions. This may
// change for phase 2.
package wasmcloud:messaging
package wasmcloud:messaging;

// Types common to message broker interactions
interface types {
Expand All @@ -18,20 +18,20 @@ interface types {
}

interface handler {
use types.{broker-message}
use types.{broker-message};

// Callback handled to invoke a function when a message is received from a subscription
handle-message: func(msg: broker-message) -> result<_, string>
handle-message: func(msg: broker-message) -> result<_, string>;
}

interface consumer {
use types.{broker-message}
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: option<list<u8>>, timeout-ms: u32) -> result<broker-message, string>;
// Performs a request and collects multiple responses. If a non-zero timeout is supplied, this will finish a collection at that time, unless
// maximum results is reached first. If both timeout-ms and max-results are 0, the provider will choose when to terminate
request-multi: func(subject: string, body: option<list<u8>>, timeout-ms: u32, max-results: u32) -> result<list<broker-message>, string>
request-multi: func(subject: string, body: option<list<u8>>, timeout-ms: u32, max-results: u32) -> result<list<broker-message>, string>;
// Publish a message to a subject without awaiting a response
publish: func(msg: broker-message) -> result<_, string>
publish: func(msg: broker-message) -> result<_, string>;
}

0 comments on commit a1e4431

Please sign in to comment.