Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix statement that all triggers must be same type #1419

Merged
merged 1 commit into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/spin/v2/writing-apps.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ You can look up the various fields in the [Manifest Reference](manifest-referenc

An application contains one or more _triggers_. Each trigger specifies a type, an event of that type that the application responds to, and a component to handle that event.

> In current versions of Spin, all triggers in the application must be of the same type. You can't listen for Redis messages and HTTP requests in the same application.
> In Spin 2.2 and below, all triggers in the application must be of the same type. You can't listen for Redis messages and HTTP requests in the same application. This restriction was removed in Spin 2.3.

The description above might sound a bit abstract. Let's clarify it with a concrete example. The most common trigger type is `http`, for which events are distinguished by the route. So an HTTP trigger might look like this:

Expand Down
2 changes: 0 additions & 2 deletions content/spin/v3/writing-apps.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ You can look up the various fields in the [Manifest Reference](manifest-referenc

An application contains one or more _triggers_. Each trigger specifies a type, an event of that type that the application responds to, and a component to handle that event.

> In current versions of Spin, all triggers in the application must be of the same type. You can't listen for Redis messages and HTTP requests in the same application.

The description above might sound a bit abstract. Let's clarify it with a concrete example. The most common trigger type is `http`, for which events are distinguished by the route. So an HTTP trigger might look like this:

```toml
Expand Down
Loading