mirror of
https://github.com/ivuorinen/gibidify.git
synced 2026-01-26 03:24:05 +00:00
feat: upgrade go, packages and actions (#116)
* chore: upgrade go and packages * chore: upgrade actions * fix(ci): use go version from .go-version * fix: backpressure tests optimization
This commit is contained in:
@@ -108,6 +108,14 @@ func (bp *BackpressureManager) ApplyBackpressure(ctx context.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
// Check for context cancellation before doing expensive operations
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
return
|
||||
default:
|
||||
// Continue with backpressure logic
|
||||
}
|
||||
|
||||
// Force garbage collection to free up memory
|
||||
runtime.GC()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user