Deprecate LastConsumed method by @Gsantomaggio in rabbitmq/rabbitmq-stream-go-client#324
The method does not indicate the last message consumed of the stream but the last stored offset.
The method was added to help the user but created confusion. env.QueryOffset(consumerName, streamName) should be used,
like:
/// you may need to do offset+1 to restart from the next message
consumer, err := env.NewConsumer(streamName, handleMessages, stream.
NewConsumerOptions().
SetManualCommit().
SetOffset(stream.OffsetSpecification{}.Offset(offset)).SetConsumerName(consName),
)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps github.com/rabbitmq/rabbitmq-stream-go-client from 1.4.5 to 1.4.6.
Release notes
Sourced from github.com/rabbitmq/rabbitmq-stream-go-client's releases.
Commits
1e03806
bump version to 1.4.6676ccf7
Add manual commit for super stream consumet (#323)0324edc
Deprecate LastConsumed method (#324)85d1327
Force localhost when lookup the metadata (#317)077c157
improve the message log (#319)a2fd590
Bump github.com/spf13/cobra from 1.8.0 to 1.8.1 (#316)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show