Skip to content

Commit

Permalink
Fix PinnedTS
Browse files Browse the repository at this point in the history
It represented the deadline, while it should reflect the moment when a
client was pinned.

Signed-off-by: Tomasz Pietrek <[email protected]>
  • Loading branch information
Jarema committed Nov 11, 2024
1 parent 30a0fcd commit 05820ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3532,7 +3532,7 @@ func (o *consumer) setPinnedTimer(priorityGroup string) {
} else {
o.pinnedTtl = time.AfterFunc(o.cfg.PinnedTTL, func() {
o.mu.Lock()
o.pinnedTS = time.Now().Add(o.cfg.PinnedTTL)
o.pinnedTS = time.Now()
o.currentPinId = _EMPTY_
o.sendUnpinnedAdvisoryLocked(priorityGroup, "timeout")
o.mu.Unlock()
Expand Down

0 comments on commit 05820ab

Please sign in to comment.