2022-08-18 19:50:59 +08:00
|
|
|
// Deprecated: This package has moved into go-libp2p as a sub-package: github.com/libp2p/go-libp2p/p2p/host/eventbus.
|
2019-06-19 23:55:25 +08:00
|
|
|
package eventbus
|
2019-06-13 10:23:03 +08:00
|
|
|
|
|
|
|
import (
|
2022-08-18 19:50:59 +08:00
|
|
|
"github.com/libp2p/go-libp2p/core/event"
|
|
|
|
"github.com/libp2p/go-libp2p/p2p/host/eventbus"
|
2019-06-13 10:23:03 +08:00
|
|
|
)
|
|
|
|
|
2022-08-18 19:50:59 +08:00
|
|
|
// Deprecated: Use github.com/libp2p/go-libp2p/p2p/host/eventbus.NewBus instead.
|
2019-06-19 23:09:42 +08:00
|
|
|
func NewBus() event.Bus {
|
2022-08-18 19:50:59 +08:00
|
|
|
return eventbus.NewBus()
|
2019-06-13 10:23:03 +08:00
|
|
|
}
|