From 095663f5ccd10a4cd04ef6ad836f37346fc748ae Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Sat, 28 Sep 2024 20:47:46 +0000 Subject: [bugfix] visibility after implicit approval not getting invalidated (#3370) * replicate issue * update go-structr to v0.8.10 with internal linked-list fix, small tweaks to caching of interaction requests * remove debug function --------- Co-authored-by: tobi --- vendor/codeberg.org/gruf/go-structr/item.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'vendor/codeberg.org/gruf/go-structr/item.go') diff --git a/vendor/codeberg.org/gruf/go-structr/item.go b/vendor/codeberg.org/gruf/go-structr/item.go index bf83f1444..3191f2beb 100644 --- a/vendor/codeberg.org/gruf/go-structr/item.go +++ b/vendor/codeberg.org/gruf/go-structr/item.go @@ -50,12 +50,9 @@ func (i *indexed_item) drop_index(entry *index_entry) { continue } - // Unset tptr value to - // ensure GC can take it. - i.indexed[x] = nil - // Move all index entries down + reslice. _ = copy(i.indexed[x:], i.indexed[x+1:]) + i.indexed[len(i.indexed)-1] = nil i.indexed = i.indexed[:len(i.indexed)-1] break } -- cgit v1.2.3