Skip to content

v1.4.6

Compare
Choose a tag to compare
@Gsantomaggio Gsantomaggio released this 26 Jun 14:36
· 65 commits to main since this release
1e03806

Milestone

Enhancements

Deprecation

  • Deprecate LastConsumed method by @Gsantomaggio in #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:
offset, err := env.QueryOffset(consumerName, streamName) 

/// 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),
)

Full Changelog: v1.4.5...v1.4.6