Skip to content

Commit

Permalink
Try resending from queue on message send only if successful (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyodar authored Apr 22, 2024
1 parent 3093642 commit 09db79b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions operator/rpc_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,14 @@ func (c *AggregatorRpcClient) sendOperatorMessage(sendCb func() error, message R
return
}

c.tryResendFromDeque()

c.logger.Info("Sending request to aggregator")
err = sendCb()
if err != nil {
appendProtected()
return
}

c.tryResendFromDeque()
}

func (c *AggregatorRpcClient) sendRequest(sendCb func() error) error {
Expand Down

0 comments on commit 09db79b

Please sign in to comment.