Skip to content

Commit

Permalink
Udpdate to 0.1.0-RC2
Browse files Browse the repository at this point in the history
  • Loading branch information
Gsantomaggio committed Nov 11, 2021
1 parent 94aaa3d commit f4b10c2
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Experimental client for [RabbitMQ Stream Queues](https://github.com/rabbitmq/rab
### Installing

```shell
go get -u github.com/rabbitmq/[email protected]RC1
go get -u github.com/rabbitmq/[email protected]RC2
```

imports:
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0-RC1
0.1.0-RC2
12 changes: 12 additions & 0 deletions change_version
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#/bin/bash
echo $1 > VERSION
sed -i -e "s/.*ClientVersion = \"*.*/ClientVersion = \"$1\"/" pkg/stream/constants.go
go fmt ./...
rm pkg/stream/constants.go-e


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
go fmt ./...
rm README.md-e

git add VERSION pkg/stream/constants.go README.md
2 changes: 1 addition & 1 deletion pkg/stream/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ func (c *Client) DeclareSubscriber(streamName string,
}

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

options.client = c
Expand Down
2 changes: 1 addition & 1 deletion pkg/stream/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const (
const initBufferPublishSize = 2 + 2 + 1 + 4

const (
ClientVersion = "0.1.0-RC1"
ClientVersion = "0.1.0-RC2"

commandDeclarePublisher = 1
commandPublish = 2
Expand Down

0 comments on commit f4b10c2

Please sign in to comment.