Skip to content

Commit

Permalink
Merge pull request #1419 from itowlson/fix-all-trigger-types-same
Browse files Browse the repository at this point in the history
Fix statement that all triggers must be same type
  • Loading branch information
itowlson authored Nov 17, 2024
2 parents 58f2d6e + 89ad95b commit e4fdf81
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
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

0 comments on commit e4fdf81

Please sign in to comment.