mirror of
https://github.com/gissleh/irc.git
synced 2026-10-15 16:42:53 +00:00
This commit is contained in:
+4
-2
@@ -43,8 +43,10 @@ func BenchmarkHandle(b *testing.B) {
|
|||||||
event := irc.NewEvent("test", eventName)
|
event := irc.NewEvent("test", eventName)
|
||||||
|
|
||||||
wg := sync.WaitGroup{}
|
wg := sync.WaitGroup{}
|
||||||
client.AddHandler(func(event2 *irc.Event, client *irc.Client) {
|
client.AddHandler(func(event2 *irc.Event, _ *irc.Client) {
|
||||||
wg.Done()
|
if event2.Kind() != "hook" {
|
||||||
|
wg.Done()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
b.Run("Emit", func(b *testing.B) {
|
b.Run("Emit", func(b *testing.B) {
|
||||||
|
|||||||
Reference in New Issue
Block a user