Skip to content

Commit

Permalink
fix(fxgcppubsub): Fixed nack reactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ekkinox committed Jul 10, 2024
1 parent 4d680e5 commit b6ff89d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fxgcppubsub/reactor/ack/reactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ func (r *AckReactor) React(req any) (bool, any, error) {
r.supervisor.StopAckWaiter(ackReq.Subscription, ackReq.AckIds, nil)
}

if ackReq, ok := req.(*pubsubpb.ModifyAckDeadlineRequest); ok {
r.supervisor.StopNackWaiter(ackReq.Subscription, ackReq.AckIds, nil)
if modReq, ok := req.(*pubsubpb.ModifyAckDeadlineRequest); ok {
r.supervisor.StopNackWaiter(modReq.Subscription, modReq.AckIds, nil)
}

return false, nil, nil
Expand Down

0 comments on commit b6ff89d

Please sign in to comment.