File tree Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ Go client for [RabbitMQ Stream Queues](https://github.com/rabbitmq/rabbitmq-serv
44
44
### Installing
45
45
46
46
``` 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
48
48
```
49
49
50
50
imports:
Original file line number Diff line number Diff line change 1
- 1.0.0-rc10
1
+ 1.0.0-rc11
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const (
19
19
const initBufferPublishSize = 2 + 2 + 1 + 4
20
20
21
21
const (
22
- ClientVersion = "1.0.0-rc10 "
22
+ ClientVersion = "1.0.0-rc11 "
23
23
24
24
commandDeclarePublisher = 1
25
25
commandPublish = 2
Original file line number Diff line number Diff line change @@ -254,6 +254,9 @@ func (consumer *Consumer) StoreOffset() error {
254
254
return consumer .internalStoreOffset ()
255
255
}
256
256
func (consumer * Consumer ) StoreCustomOffset (offset int64 ) error {
257
+ consumer .mutex .Lock ()
258
+ defer consumer .mutex .Unlock ()
259
+
257
260
if consumer .lastStoredOffset < offset {
258
261
consumer .lastStoredOffset = offset
259
262
return consumer .writeOffsetToSocket (offset )
You can’t perform that action at this time.
0 commit comments