Skip to content

Commit

Permalink
fix: payments publish
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag committed Aug 29, 2022
1 parent 4729bb2 commit 66646f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/bridge/ingestion/ingester.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func (i *defaultIngester) Ingest(ctx context.Context, batch Batch, commitState a
for _, e := range allPayments {
i.publish(ctx, TopicPayments,
NewEventSavedPayment(
SavedPayment(e.Computed())))
e.Computed()))
}
}

Expand Down
4 changes: 1 addition & 3 deletions pkg/bridge/ingestion/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ type EventMessage struct {
Payload json.RawMessage `json:"payload"`
}

type SavedPayment payments.ComputedPayment

func NewEventSavedPayment(payment SavedPayment) EventMessage {
func NewEventSavedPayment(payment payments.ComputedPayment) EventMessage {
payload, err := json.Marshal(payment)
if err != nil {
panic(err)
Expand Down

0 comments on commit 66646f7

Please sign in to comment.