diff options
author | 2024-06-21 15:43:17 +0000 | |
---|---|---|
committer | 2024-06-21 16:43:17 +0100 | |
commit | b93087ceb4f508c1d5262f363a21bdea3e502c31 (patch) | |
tree | 71ff80a06ee447f4694fd242cb84d9010fc46ccd /vendor/codeberg.org/gruf/go-structr/queue_ctx.go | |
parent | [feature] add worker task serialization logic (#2989) (diff) | |
download | gotosocial-b93087ceb4f508c1d5262f363a21bdea3e502c31.tar.xz |
[chore] update go-structr and go-mangler to no longer rely on modern-go/reflect2 (#3026)
* updates go-structr and go-mangler to no longer rely on modern-go/reflect2 (*phew* now we're go1.23 safe)
* update go-structr version
* bump go-structr to improve memory usage (v. slightly) in certain conditions
Diffstat (limited to 'vendor/codeberg.org/gruf/go-structr/queue_ctx.go')
-rw-r--r-- | vendor/codeberg.org/gruf/go-structr/queue_ctx.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vendor/codeberg.org/gruf/go-structr/queue_ctx.go b/vendor/codeberg.org/gruf/go-structr/queue_ctx.go index 3d15e619c..5431b8947 100644 --- a/vendor/codeberg.org/gruf/go-structr/queue_ctx.go +++ b/vendor/codeberg.org/gruf/go-structr/queue_ctx.go @@ -73,10 +73,9 @@ func (q *QueueCtx[T]) Debug() map[string]any { m["indices"] = indices for i := range q.indices { var n uint64 - q.indices[i].data.Iter(func(_ string, l *list) (stop bool) { + for _, l := range q.indices[i].data.m { n += uint64(l.len) - return - }) + } indices[q.indices[i].name] = n } q.mutex.Unlock() |