internal/app/state: export correct backend value
All checks were successful
Test / Create distribution (push) Successful in 33s
Test / Sandbox (push) Successful in 2m17s
Test / Hakurei (push) Successful in 3m7s
Test / Sandbox (race detector) (push) Successful in 3m52s
Test / Hpkg (push) Successful in 3m59s
Test / Hakurei (race detector) (push) Successful in 4m46s
Test / Flake checks (push) Successful in 1m25s

This references the underlying multiBackend due to a typo, making the whole dance with c a noop.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
Ophestra 2025-10-25 21:11:05 +09:00
parent e9d00b9071
commit 8d3381821f
Signed by: cat
SSH Key Fingerprint: SHA256:gQ67O0enBZ7UdZypgtspB2FDM1g3GVw8nX0XSdcFw8Q

View File

@ -62,7 +62,7 @@ func (s *multiStore) Do(identity int, f func(c Cursor)) (bool, error) {
// expose backend methods without exporting the pointer // expose backend methods without exporting the pointer
c := new(struct{ *multiBackend }) c := new(struct{ *multiBackend })
c.multiBackend = b c.multiBackend = b
f(b) f(c)
// disable access to the backend on a best-effort basis // disable access to the backend on a best-effort basis
c.multiBackend = nil c.multiBackend = nil