From 9abcb7f8ca5c09ddf1e5306e5328ed295cdbad6d Mon Sep 17 00:00:00 2001 From: Paul Nicolas Date: Wed, 15 Mar 2023 11:45:50 +0100 Subject: [PATCH] feat: remove deprecated ledger field for event message (#150) --- pkg/bus/message.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/bus/message.go b/pkg/bus/message.go index c49004d96..77e139b30 100644 --- a/pkg/bus/message.go +++ b/pkg/bus/message.go @@ -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 { @@ -42,7 +40,6 @@ func newEventCommittedTransactions(txs CommittedTransactions) EventMessage { Version: EventVersion, Type: EventTypeCommittedTransactions, Payload: txs, - Ledger: txs.Ledger, } } @@ -60,7 +57,6 @@ func newEventSavedMetadata(metadata SavedMetadata) EventMessage { Version: EventVersion, Type: EventTypeSavedMetadata, Payload: metadata, - Ledger: metadata.Ledger, } } @@ -76,7 +72,6 @@ func newEventUpdatedMapping(mapping UpdatedMapping) EventMessage { Version: EventVersion, Type: EventTypeUpdatedMapping, Payload: mapping, - Ledger: mapping.Ledger, } } @@ -93,6 +88,5 @@ func newEventRevertedTransaction(tx RevertedTransaction) EventMessage { Version: EventVersion, Type: EventTypeRevertedTransaction, Payload: tx, - Ledger: tx.Ledger, } }