diff --git a/pkg/innerring/processors/alphabet/processor.go b/pkg/innerring/processors/alphabet/processor.go index 546e134f42..0b5a7c145f 100644 --- a/pkg/innerring/processors/alphabet/processor.go +++ b/pkg/innerring/processors/alphabet/processor.go @@ -79,6 +79,5 @@ func (np *Processor) ListenerHandlers() []event.HandlerInfo { // TimersHandlers for the 'Timers' event producer. func (np *Processor) TimersHandlers() []event.HandlerInfo { - return nil } diff --git a/pkg/innerring/processors/settlement/audit/util.go b/pkg/innerring/processors/settlement/audit/util.go index c0208223b3..b354d56f54 100644 --- a/pkg/innerring/processors/settlement/audit/util.go +++ b/pkg/innerring/processors/settlement/audit/util.go @@ -31,7 +31,7 @@ func (t *transferTable) transfer(tx *transferTx) { m, ok := t.txs[from] if !ok { if m, ok = t.txs[to]; ok { - from, to = to, from + to = from // ignore `from = to` swap because `from` doesn't require tx.amount.Neg(tx.amount) } else { m = make(map[string]*transferTx, 1)