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 b6ff89d commit ff72fc6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fxgcppubsub/reactor/supervisor.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package reactor

import (
"fmt"
"sync"
)

Expand Down Expand Up @@ -32,6 +33,8 @@ func (s *DefaultWaiterSupervisor) StartWaiter(target string) *Waiter {

waiter := NewWaiter()

fmt.Printf("start waiter for target %s\n", target)

s.waiters[target] = waiter

return waiter
Expand All @@ -42,6 +45,8 @@ func (s *DefaultWaiterSupervisor) StopWaiter(target string, data any, err error)
s.mutex.Lock()
defer s.mutex.Unlock()

fmt.Printf("stop waiter for target %s\n", target)

if waiter, found := s.waiters[target]; found {
waiter.Stop(data, err)
}
Expand Down

0 comments on commit ff72fc6

Please sign in to comment.