Skip to content

Commit

Permalink
settlement workers
Browse files Browse the repository at this point in the history
  • Loading branch information
clD11 committed Jun 22, 2023
1 parent 2ff9a92 commit a6351cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions services/settlement/payout/payout.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ func (r *RedisConfigStreamClient) SetLastPayout(ctx context.Context, config Conf
return nil
}

// AddPreparedTransaction adds prepared transactions to storage for later processing. AddPreparedTransaction is idempotent.
func (r *RedisConfigStreamClient) AddPreparedTransaction(ctx context.Context, payoutID string, attestedTransaction payment.AttestedTransaction) error {
_, err := r.rc.ZAddNX(ctx, preparedTransactionsPrefix+payoutID, &redis.Z{
Score: float64(time.Now().Unix()),
Expand Down

0 comments on commit a6351cc

Please sign in to comment.