Too many of your codes could be optimized
This commit is contained in:
parent
d05bce6e27
commit
4e1189f338
|
@ -87,9 +87,7 @@ func Load() {
|
||||||
|
|
||||||
// AddHandler adds the specified handlers to user event queues.
|
// AddHandler adds the specified handlers to user event queues.
|
||||||
func (uq *UserEventQueue) AddHandler(handlers ...Handler) {
|
func (uq *UserEventQueue) AddHandler(handlers ...Handler) {
|
||||||
for _, handler := range handlers {
|
uq.Handlers = append(uq.Handlers, handlers...)
|
||||||
uq.Handlers = append(uq.Handlers, handler)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// New initializes a user event queue with the specified wide session id.
|
// New initializes a user event queue with the specified wide session id.
|
||||||
|
|
Loading…
Reference in New Issue