Skip to content

Commit f4b10c2

Browse files
committed
Udpdate to 0.1.0-RC2
1 parent 94aaa3d commit f4b10c2

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

README.md

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

4646
```shell
47-
go get -u github.com/rabbitmq/rabbitmq-stream-go-client@v0.1.0-RC1
47+
go get -u github.com/rabbitmq/rabbitmq-stream-go-client@v0.1.0-RC2
4848
```
4949

5050
imports:

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.0-RC1
1+
0.1.0-RC2

change_version

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#/bin/bash
2+
echo $1 > VERSION
3+
sed -i -e "s/.*ClientVersion = \"*.*/ClientVersion = \"$1\"/" pkg/stream/constants.go
4+
go fmt ./...
5+
rm pkg/stream/constants.go-e
6+
7+
8+
sed -i -e "s/.*github.com\/rabbitmq\/rabbitmq-stream-go-client@v*.*/go get -u github.com\/rabbitmq\/rabbitmq-stream-go-client@v$1/" README.md
9+
go fmt ./...
10+
rm README.md-e
11+
12+
git add VERSION pkg/stream/constants.go README.md

pkg/stream/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ func (c *Client) DeclareSubscriber(streamName string,
688688
}
689689

690690
if options.autoCommitStrategy.messageCountBeforeStorage < 1 {
691-
return nil, fmt.Errorf("message count before storage be bigger than one")
691+
return nil, fmt.Errorf("message count before storage must be bigger than one")
692692
}
693693

694694
options.client = c

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 = "0.1.0-RC1"
22+
ClientVersion = "0.1.0-RC2"
2323

2424
commandDeclarePublisher = 1
2525
commandPublish = 2

0 commit comments

Comments
 (0)