Skip to content

Commit

Permalink
feat: remove deprecated ledger field for event message (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-nicolas authored Mar 15, 2023
1 parent 900e45f commit 9abcb7f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/bus/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ type EventMessage struct {
Version string `json:"version"`
Type string `json:"type"`
Payload any `json:"payload"`
// TODO: deprecated in future version
Ledger string `json:"ledger"`
}

type CommittedTransactions struct {
Expand All @@ -42,7 +40,6 @@ func newEventCommittedTransactions(txs CommittedTransactions) EventMessage {
Version: EventVersion,
Type: EventTypeCommittedTransactions,
Payload: txs,
Ledger: txs.Ledger,
}
}

Expand All @@ -60,7 +57,6 @@ func newEventSavedMetadata(metadata SavedMetadata) EventMessage {
Version: EventVersion,
Type: EventTypeSavedMetadata,
Payload: metadata,
Ledger: metadata.Ledger,
}
}

Expand All @@ -76,7 +72,6 @@ func newEventUpdatedMapping(mapping UpdatedMapping) EventMessage {
Version: EventVersion,
Type: EventTypeUpdatedMapping,
Payload: mapping,
Ledger: mapping.Ledger,
}
}

Expand All @@ -93,6 +88,5 @@ func newEventRevertedTransaction(tx RevertedTransaction) EventMessage {
Version: EventVersion,
Type: EventTypeRevertedTransaction,
Payload: tx,
Ledger: tx.Ledger,
}
}

0 comments on commit 9abcb7f

Please sign in to comment.