log "github.com/sirupsen/logrus"
- "github.com/bytom/protocol/bc/types"
+ "github.com/bytom/bytom/protocol/bc/types"
)
const (
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 {
// 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