File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ func (c AdminConfig) PostProcess() error {
120120 )
121121}
122122
123- func (c AdminConfig ) Validate () error {
123+ func (c * AdminConfig ) Validate () error {
124124 if c .Log == nil {
125125 c .Log = log .DefaultLogConfig ()
126126 } else if err := c .Log .Validate (); err != nil {
Original file line number Diff line number Diff line change @@ -29,6 +29,6 @@ func (c Config) Validate() error {
2929
3030func Default () Config {
3131 return Config {
32- BufferSize : 100 ,
32+ BufferSize : 1024 ,
3333 }
3434}
Original file line number Diff line number Diff line change @@ -19,8 +19,6 @@ package events
1919
2020import "sync/atomic"
2121
22- // AsyncSubscriber is an optional interface.
23- // Subscribers implementing this interface can be dispatched asynchronously.
2422type AsyncSubscriber interface {
2523 Subscriber
2624 AsyncEnabled () bool
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ type EventBusComponent interface {
3939}
4040
4141var _ EventBusComponent = & eventBus {}
42+ var _ runtime.GracefulComponent = & eventBus {}
4243
4344type eventBus struct {
4445 rwMutex sync.RWMutex
You can’t perform that action at this time.
0 commit comments