Skip to content

Commit

Permalink
added responseCollector <- &pubsub2.Message{} when local worker hangs
Browse files Browse the repository at this point in the history
  • Loading branch information
jdutchak committed Aug 2, 2024
1 parent 8bc5d80 commit f789126
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/workers/workers.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ func SendWork(node *masa.OracleNode, m *pubsub2.Message) {
result, err := future.Result()
if err != nil {
logrus.Errorf("[-] Error receiving response from local worker: %v", err)
responseCollector <- &pubsub2.Message{}
return
}
response := result.(*messages.Response)
Expand Down

0 comments on commit f789126

Please sign in to comment.