OSDN Git Service

docs(release note): update bytom version 1.1.0 release note
[bytom/bytom.git] / event / event.go
index 8a1bf51..20f525d 100644 (file)
@@ -9,7 +9,7 @@ import (
 
        log "github.com/sirupsen/logrus"
 
-       "github.com/bytom/protocol/bc/types"
+       "github.com/bytom/bytom/protocol/bc/types"
 )
 
 const (
@@ -24,7 +24,7 @@ var (
        ErrDuplicateSubscribe = errors.New("event: subscribe duplicate type")
 )
 
-type NewMinedBlockEvent struct{ Block *types.Block }
+type NewMinedBlockEvent struct{ Block types.Block }
 
 // TypeMuxEvent is a time-tagged notification pushed to subscribers.
 type TypeMuxEvent struct {
@@ -37,8 +37,6 @@ type TypeMuxEvent struct {
 // called after mux is stopped will return ErrMuxClosed.
 //
 // The zero value is ready to use.
-//
-// Deprecated: use Feed
 type Dispatcher struct {
        mutex   sync.RWMutex
        subm    map[reflect.Type][]*Subscription