github rabbitmq/rabbitmq-stream-go-client v1.4.6

latest releases: v1.6.1, v1.6.0, v1.5.8...
17 months ago

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

Don't miss a new rabbitmq-stream-go-client release

NewReleases is sending notifications on new releases.