Skip to content

Commit

Permalink
Merge branch 'master' of github.com:rewardStyle/kinetic
Browse files Browse the repository at this point in the history
  • Loading branch information
fjordan committed Mar 22, 2016
2 parents 396d527 + 4deb99c commit cd51a72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import "github.com/rewardStyle/kinetic"
listener, _ := new(kinetic.Listener).Init()

// Use custom configuration
producer, _ := new(kinetic.Producer).InitC("your-stream", "0", "shard-type", "accesskey", "secretkey", "region")
producer, _ := new(kinetic.Producer).InitC("your-stream", "0", "shard-type", "accesskey", "secretkey", "region", 10)

producer.Send(new(kinetic.Message).Init([]byte(`{"foo":"bar"}`), "test"))

Expand Down
3 changes: 3 additions & 0 deletions listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ func (l *Listener) consume() {
response, err := l.client.GetRecords(l.args())
if err != nil {
l.errors <- err

// Refresh the shard iterator
l.initShardIterator()
}

if response != nil {
Expand Down

0 comments on commit cd51a72

Please sign in to comment.