aboutsummaryrefslogtreecommitdiffstats
path: root/miner
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-12-11 02:02:14 +0800
committerFelix Lange <fjl@twurst.com>2017-01-25 23:25:57 +0800
commit9b62facdd4bdabfed5ef98d131686c4d2606083a (patch)
tree1bd02cd071988eef4a5772917951b793bf1f7e15 /miner
parentf1069a30b9ca13769ace154ff25dfabc83f25485 (diff)
downloaddexon-9b62facdd4bdabfed5ef98d131686c4d2606083a.tar
dexon-9b62facdd4bdabfed5ef98d131686c4d2606083a.tar.gz
dexon-9b62facdd4bdabfed5ef98d131686c4d2606083a.tar.bz2
dexon-9b62facdd4bdabfed5ef98d131686c4d2606083a.tar.lz
dexon-9b62facdd4bdabfed5ef98d131686c4d2606083a.tar.xz
dexon-9b62facdd4bdabfed5ef98d131686c4d2606083a.tar.zst
dexon-9b62facdd4bdabfed5ef98d131686c4d2606083a.zip
event: deprecate TypeMux and related types
The Subscription type is gone, all uses are replaced by *TypeMuxSubscription. This change is prep-work for the introduction of the new Subscription type in a later commit. gorename -from '"github.com/ethereum/go-ethereum/event"::Event' -to TypeMuxEvent gorename -from '"github.com/ethereum/go-ethereum/event"::muxsub' -to TypeMuxSubscription gofmt -w -r 'Subscription -> *TypeMuxSubscription' ./event/*.go find . -name '*.go' -and -not -regex '\./vendor/.*' \| xargs gofmt -w -r 'event.Subscription -> *event.TypeMuxSubscription'
Diffstat (limited to 'miner')
-rw-r--r--miner/worker.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/miner/worker.go b/miner/worker.go
index 77e4e0205..49ac60253 100644
--- a/miner/worker.go
+++ b/miner/worker.go
@@ -90,7 +90,7 @@ type worker struct {
// update loop
mux *event.TypeMux
- events event.Subscription
+ events *event.TypeMuxSubscription
wg sync.WaitGroup
agents map[Agent]struct{}