mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 16:24:03 +03:00
Add timestamp to EventConcurrencyLimited
This commit is contained in:
+3
-1
@@ -74,7 +74,9 @@ func (p *Proxy) Serve(listener net.Listener) error {
|
|||||||
case errors.Is(err, ants.ErrPoolClosed):
|
case errors.Is(err, ants.ErrPoolClosed):
|
||||||
return nil
|
return nil
|
||||||
case errors.Is(err, ants.ErrPoolOverload):
|
case errors.Is(err, ants.ErrPoolOverload):
|
||||||
p.eventStream.Send(p.ctx, EventConcurrencyLimited{})
|
p.eventStream.Send(p.ctx, EventConcurrencyLimited{
|
||||||
|
CreatedAt: time.Now(),
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user