fix benchmark failure.
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-10-18 22:39:18 +02:00
parent c897421f20
commit d2c7fb9fb3
+4 -2
View File
@@ -43,8 +43,10 @@ func BenchmarkHandle(b *testing.B) {
event := irc.NewEvent("test", eventName)
wg := sync.WaitGroup{}
client.AddHandler(func(event2 *irc.Event, client *irc.Client) {
wg.Done()
client.AddHandler(func(event2 *irc.Event, _ *irc.Client) {
if event2.Kind() != "hook" {
wg.Done()
}
})
b.Run("Emit", func(b *testing.B) {