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 17, 2023
1 parent 4f2bbdb commit 3802c79
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 @@ -27,6 +27,7 @@ Versioning](http://semver.org/spec/v2.0.0.html) except to the first release.
set (#272)
- Watcher events loss with a small per-request timeout (#284)
- Connect() panics on concurrent schema update (#278)
- 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 3802c79

Please sign in to comment.