From 3d3b01d0825473a945cce6fb75991a46d0d4d1f0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 14 Jun 2025 23:30:01 +0000 Subject: [PATCH] chore(deps): bump github.com/panjf2000/ants/v2 from 2.11.0 to 2.11.3 Bumps [github.com/panjf2000/ants/v2](https://github.com/panjf2000/ants) from 2.11.0 to 2.11.3. - [Release notes](https://github.com/panjf2000/ants/releases) - [Commits](https://github.com/panjf2000/ants/compare/v2.11.0...v2.11.3) --- updated-dependencies: - dependency-name: github.com/panjf2000/ants/v2 dependency-version: 2.11.3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- vendor/github.com/panjf2000/ants/v2/README.md | 2 +- vendor/github.com/panjf2000/ants/v2/README_ZH.md | 2 +- vendor/github.com/panjf2000/ants/v2/options.go | 6 ++++-- vendor/github.com/panjf2000/ants/v2/worker_loop_queue.go | 2 -- vendor/modules.txt | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/go.mod b/go.mod index fe270e6a..a103b76a 100644 --- a/go.mod +++ b/go.mod @@ -31,7 +31,7 @@ require ( github.com/nlopes/slack v0.6.0 github.com/opencontainers/go-digest v1.0.0 github.com/opencontainers/image-spec v1.1.1 - github.com/panjf2000/ants/v2 v2.11.0 + github.com/panjf2000/ants/v2 v2.11.3 github.com/pkg/errors v0.9.1 github.com/pkg/profile v1.7.0 github.com/rabbitmq/amqp091-go v1.10.0 diff --git a/go.sum b/go.sum index f9fa812f..5ee63aa3 100644 --- a/go.sum +++ b/go.sum @@ -280,8 +280,8 @@ github.com/opencontainers/image-spec v1.1.1/go.mod h1:qpqAh3Dmcf36wStyyWU+kCeDgr github.com/opencontainers/runtime-spec v1.2.0 h1:z97+pHb3uELt/yiAWD691HNHQIF07bE7dzrbT927iTk= github.com/opencontainers/runtime-spec v1.2.0/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= github.com/orisano/pixelmatch v0.0.0-20220722002657-fb0b55479cde/go.mod h1:nZgzbfBr3hhjoZnS66nKrHmduYNpc34ny7RK4z5/HM0= -github.com/panjf2000/ants/v2 v2.11.0 h1:sHrqEwTBQTQ2w6PMvbMfvBtVUuhsaYPzUmAYDLYmJPg= -github.com/panjf2000/ants/v2 v2.11.0/go.mod h1:V9HhTupTWxcaRmIglJvGwvzqXUTnIZW9uO6q4hAfApw= +github.com/panjf2000/ants/v2 v2.11.3 h1:AfI0ngBoXJmYOpDh9m516vjqoUu2sLrIVgppI9TZVpg= +github.com/panjf2000/ants/v2 v2.11.3/go.mod h1:8u92CYMUc6gyvTIw8Ru7Mt7+/ESnJahz5EVtqfrilek= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= diff --git a/vendor/github.com/panjf2000/ants/v2/README.md b/vendor/github.com/panjf2000/ants/v2/README.md index fc86e129..826a55e1 100644 --- a/vendor/github.com/panjf2000/ants/v2/README.md +++ b/vendor/github.com/panjf2000/ants/v2/README.md @@ -160,7 +160,7 @@ Trusted by the following corporations/organizations. - + diff --git a/vendor/github.com/panjf2000/ants/v2/README_ZH.md b/vendor/github.com/panjf2000/ants/v2/README_ZH.md index e0c323c1..793c02c2 100644 --- a/vendor/github.com/panjf2000/ants/v2/README_ZH.md +++ b/vendor/github.com/panjf2000/ants/v2/README_ZH.md @@ -161,7 +161,7 @@ pool.Reboot() - + diff --git a/vendor/github.com/panjf2000/ants/v2/options.go b/vendor/github.com/panjf2000/ants/v2/options.go index 182cd5af..eb56aebb 100644 --- a/vendor/github.com/panjf2000/ants/v2/options.go +++ b/vendor/github.com/panjf2000/ants/v2/options.go @@ -55,7 +55,9 @@ type Options struct { Nonblocking bool // PanicHandler is used to handle panics from each worker goroutine. - // if nil, panics will be thrown out again from worker goroutines. + // If nil, the default behavior is to capture the value given to panic + // and resume normal execution and print that value along with the + // stack trace of the goroutine PanicHandler func(any) // Logger is the customized logger for logging info, if it is not set, @@ -66,7 +68,7 @@ type Options struct { DisablePurge bool } -// WithOptions accepts the whole options config. +// WithOptions accepts the whole Options config. func WithOptions(options Options) Option { return func(opts *Options) { *opts = options diff --git a/vendor/github.com/panjf2000/ants/v2/worker_loop_queue.go b/vendor/github.com/panjf2000/ants/v2/worker_loop_queue.go index b3729839..ad62baea 100644 --- a/vendor/github.com/panjf2000/ants/v2/worker_loop_queue.go +++ b/vendor/github.com/panjf2000/ants/v2/worker_loop_queue.go @@ -170,8 +170,6 @@ retry: w.finish() goto retry } - wq.items = wq.items[:0] - wq.size = 0 wq.head = 0 wq.tail = 0 } diff --git a/vendor/modules.txt b/vendor/modules.txt index 56827630..2909732c 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -408,7 +408,7 @@ github.com/opencontainers/image-spec/specs-go/v1 # github.com/opencontainers/runtime-spec v1.2.0 ## explicit github.com/opencontainers/runtime-spec/specs-go -# github.com/panjf2000/ants/v2 v2.11.0 +# github.com/panjf2000/ants/v2 v2.11.3 ## explicit; go 1.18 github.com/panjf2000/ants/v2 github.com/panjf2000/ants/v2/pkg/sync