internal/app/state: export correct backend value

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:
2025-10-25 21:11:05 +09:00
parent e9d00b9071
commit 8d3381821f

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
c := new(struct{ *multiBackend })
c.multiBackend = b
f(b)
f(c)
// disable access to the backend on a best-effort basis
c.multiBackend = nil