mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
eth,eth/filters: fix formatting
This commit is contained in:
parent
d843dedd88
commit
b06488abfc
3 changed files with 16 additions and 16 deletions
|
|
@ -152,7 +152,7 @@ func (b *EthAPIBackend) SubscribeChainSideEvent(ch chan<- core.ChainSideEvent) e
|
||||||
return b.eth.BlockChain().SubscribeChainSideEvent(ch)
|
return b.eth.BlockChain().SubscribeChainSideEvent(ch)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *EthApiBackend) SubscribeTransactionEvent(ch chan<- core.TransactionEvent) event.Subscription {
|
func (b *EthAPIBackend) SubscribeTransactionEvent(ch chan<- core.TransactionEvent) event.Subscription {
|
||||||
return b.eth.BlockChain().SubscribeTransactionEvent(ch)
|
return b.eth.BlockChain().SubscribeTransactionEvent(ch)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,7 @@ type EventSystem struct {
|
||||||
// Channels
|
// Channels
|
||||||
install chan *subscription // install filter for event notification
|
install chan *subscription // install filter for event notification
|
||||||
uninstall chan *subscription // remove filter for event notification
|
uninstall chan *subscription // remove filter for event notification
|
||||||
txPreCh chan core.TxPreEvent // Channel to recieve new pre transaction events
|
txPreCh chan core.TxPreEvent // Channel to receive new pre transaction events
|
||||||
txCh chan core.TransactionEvent // Channel to receive new transaction events
|
txCh chan core.TransactionEvent // Channel to receive new transaction events
|
||||||
logsCh chan []*types.Log // Channel to receive new log event
|
logsCh chan []*types.Log // Channel to receive new log event
|
||||||
rmLogsCh chan core.RemovedLogsEvent // Channel to receive removed log event
|
rmLogsCh chan core.RemovedLogsEvent // Channel to receive removed log event
|
||||||
|
|
@ -132,7 +132,7 @@ func NewEventSystem(mux *event.TypeMux, backend Backend, lightMode bool) *EventS
|
||||||
lightMode: lightMode,
|
lightMode: lightMode,
|
||||||
install: make(chan *subscription),
|
install: make(chan *subscription),
|
||||||
uninstall: make(chan *subscription),
|
uninstall: make(chan *subscription),
|
||||||
txPrech: make(chan core.TxPreEvent, txPreChanSize),
|
txPreCh: make(chan core.TxPreEvent, txPreChanSize),
|
||||||
txCh: make(chan core.TransactionEvent, txPostChanSize),
|
txCh: make(chan core.TransactionEvent, txPostChanSize),
|
||||||
logsCh: make(chan []*types.Log, logsChanSize),
|
logsCh: make(chan []*types.Log, logsChanSize),
|
||||||
rmLogsCh: make(chan core.RemovedLogsEvent, rmLogsChanSize),
|
rmLogsCh: make(chan core.RemovedLogsEvent, rmLogsChanSize),
|
||||||
|
|
|
||||||
|
|
@ -332,7 +332,7 @@ func TestInvalidLogFilterCreation(t *testing.T) {
|
||||||
mux = new(event.TypeMux)
|
mux = new(event.TypeMux)
|
||||||
db = ethdb.NewMemDatabase()
|
db = ethdb.NewMemDatabase()
|
||||||
txPreFeed = new(event.Feed)
|
txPreFeed = new(event.Feed)
|
||||||
txPostFeed = new(evnt.Feed)
|
txPostFeed = new(event.Feed)
|
||||||
rmLogsFeed = new(event.Feed)
|
rmLogsFeed = new(event.Feed)
|
||||||
logsFeed = new(event.Feed)
|
logsFeed = new(event.Feed)
|
||||||
chainFeed = new(event.Feed)
|
chainFeed = new(event.Feed)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue