diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-25 21:11:05 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-25 21:11:05 +0900 |
| commit | 8d3381821f2a8d257a4c55c0dd311019bd0e78eb (patch) | |
| tree | 3ecd60061f7747d4a7f70430976b2e866a145f84 | |
| parent | e9d00b90710859a5d428e2c313df1dac52d0d208 (diff) | |
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>
| -rw-r--r-- | internal/app/state/multi.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/app/state/multi.go b/internal/app/state/multi.go index c15b8534..c9096ace 100644 --- a/internal/app/state/multi.go +++ b/internal/app/state/multi.go @@ -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 |
