Skip to content

Commit da50319

Browse files
committed
update version to 1.0.0-rc11 and fix StoreCustomOffset
1 parent dc8c53d commit da50319

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Go client for [RabbitMQ Stream Queues](https://github.com/rabbitmq/rabbitmq-serv
4444
### Installing
4545

4646
```shell
47-
go get -u github.com/rabbitmq/rabbitmq-stream-go-client@v1.0.0-rc10
47+
go get -u github.com/rabbitmq/rabbitmq-stream-go-client@v1.0.0-rc11
4848
```
4949

5050
imports:

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.0-rc10
1+
1.0.0-rc11

pkg/stream/constants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const (
1919
const initBufferPublishSize = 2 + 2 + 1 + 4
2020

2121
const (
22-
ClientVersion = "1.0.0-rc10"
22+
ClientVersion = "1.0.0-rc11"
2323

2424
commandDeclarePublisher = 1
2525
commandPublish = 2

pkg/stream/consumer.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,9 @@ func (consumer *Consumer) StoreOffset() error {
254254
return consumer.internalStoreOffset()
255255
}
256256
func (consumer *Consumer) StoreCustomOffset(offset int64) error {
257+
consumer.mutex.Lock()
258+
defer consumer.mutex.Unlock()
259+
257260
if consumer.lastStoredOffset < offset {
258261
consumer.lastStoredOffset = offset
259262
return consumer.writeOffsetToSocket(offset)

0 commit comments

Comments
 (0)