Skip to content

Commit 016590e

Browse files
committed
refactor(os): 移除 SeqEventBus 中的 OnError 字段
移除了 SeqEventBusOption 结构中的 OnError 字段,并调整了相关的初始化逻辑。这个改动简化了结构体的定义,并且减少了不必要的错误处理配置。
1 parent 257e6e8 commit 016590e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

os/gevent/gevent_seq_event_bus.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ type handlerProcessor struct {
3232
type SeqEventBusOption struct {
3333
QueueSize int
3434
WorkerSize int
35-
OnError ErrorModel
3635
}
3736

3837
type SeqEventBus struct {
@@ -170,7 +169,6 @@ func NewSeqEventBus(options ...SeqEventBusOption) *SeqEventBus {
170169
option := SeqEventBusOption{
171170
QueueSize: 100,
172171
WorkerSize: 10,
173-
OnError: Ignore,
174172
}
175173
if len(options) > 0 {
176174
option = options[0]

0 commit comments

Comments
 (0)