Skip to content

Commit

Permalink
Fix signature of NoTimeoutMessagesBehavior.HandleTimeout() to match…
Browse files Browse the repository at this point in the history
… `ProcessMessageHandler` interface
  • Loading branch information
jmalloc committed Mar 1, 2021
1 parent 5feadad commit c9adb73
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ The format is based on [Keep a Changelog], and this project adheres to
[Keep a Changelog]: https://keepachangelog.com/en/1.0.0/
[Semantic Versioning]: https://semver.org/spec/v2.0.0.html

## [0.11.1] - 2021-03-01

### Fixed

- Fix signature of `NoTimeoutMessagesBehavior.HandleTimeout()` to match `ProcessMessageHandler` interface

## [0.11.0] - 2021-02-23

### Added
Expand Down Expand Up @@ -167,6 +173,7 @@ The format is based on [Keep a Changelog], and this project adheres to
[0.9.0]: https://github.com/dogmatiq/dogma/releases/tag/v0.9.0
[0.10.0]: https://github.com/dogmatiq/dogma/releases/tag/v0.10.0
[0.11.0]: https://github.com/dogmatiq/dogma/releases/tag/v0.11.0
[0.11.1]: https://github.com/dogmatiq/dogma/releases/tag/v0.11.1

<!-- version template
## [0.0.1] - YYYY-MM-DD
Expand Down
2 changes: 1 addition & 1 deletion process.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,6 @@ type statelessProcessRoot struct{}
type NoTimeoutMessagesBehavior struct{}

// HandleTimeout panics with the UnexpectedMessage value.
func (NoTimeoutMessagesBehavior) HandleTimeout(context.Context, ProcessTimeoutScope, Message) error {
func (NoTimeoutMessagesBehavior) HandleTimeout(context.Context, ProcessRoot, ProcessTimeoutScope, Message) error {
panic(UnexpectedMessage)
}
2 changes: 1 addition & 1 deletion process_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ func TestNoTimeoutMessagesBehavior_HandleTimeout_Panics(t *testing.T) {
}
}()

v.HandleTimeout(ctx, nil, nil)
v.HandleTimeout(ctx, nil, nil, nil)
}

0 comments on commit c9adb73

Please sign in to comment.