Skip to content

Commit

Permalink
bugfix: set wrong Ttr by Queue.Cfg()
Browse files Browse the repository at this point in the history
Ttr should be in seconds.

Part of #278
  • Loading branch information
oleg-jukovec committed May 12, 2023
1 parent 9385498 commit 7154c11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Versioning](http://semver.org/spec/v2.0.0.html) except to the first release.
- ConnectionPool does not properly handle disconnection with Opts.Reconnect
set (#272)
- Connect() panics on concurrent schema update (#281)
- Wrong Ttr setup by Queue.Cfg() (#278)

## [1.10.0] - 2022-12-31

Expand Down
2 changes: 1 addition & 1 deletion queue/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (opts CfgOpts) toMap() map[string]interface{} {
ret := make(map[string]interface{})
ret["in_replicaset"] = opts.InReplicaset
if opts.Ttr != 0 {
ret["ttr"] = opts.Ttr
ret["ttr"] = opts.Ttr.Seconds()
}
return ret
}
Expand Down

0 comments on commit 7154c11

Please sign in to comment.