summaryrefslogtreecommitdiff
path: root/internal/cache/gts.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2023-12-11 12:05:54 +0000
committerLibravatar GitHub <noreply@github.com>2023-12-11 12:05:54 +0000
commit2191c7dee5c7b84836fbcebace271c31dbd4596a (patch)
treeba0dce563dd62e2ded08e2332e7a51ce84755a9c /internal/cache/gts.go
parent[chore]: Bump github.com/KimMachineGun/automemlimit from 0.3.0 to 0.4.0 (#2440) (diff)
downloadgotosocial-2191c7dee5c7b84836fbcebace271c31dbd4596a.tar.xz
[bugfix] ensure the 'Closing' flag doesn't get cached (#2443)
Diffstat (limited to 'internal/cache/gts.go')
-rw-r--r--internal/cache/gts.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/cache/gts.go b/internal/cache/gts.go
index c19d96444..339605354 100644
--- a/internal/cache/gts.go
+++ b/internal/cache/gts.go
@@ -824,6 +824,11 @@ func (c *GTSCaches) initPoll() {
// See internal/db/bundb/poll.go.
p2.Status = nil
+ // Don't include ephemeral fields
+ // which are only expected to be
+ // set on ONE poll instance.
+ p2.Closing = false
+
return p2
}