-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server: restore separate connections for the local state db (#29)
In #25 I switched away from using a transaction for queries on the local state database, because it did not interact properly with the queryable interface we added in #24. But because I'd switched away from having a separate read-only connection for these queries, this had the undesirable side-effect of allowing write queries on the local state database. Switch back to using a separate read-only connection for local state. Morally this is a partial revert of #24, but done in a slightly different way.
- Loading branch information
1 parent
501ba63
commit 938e5f4
Showing
2 changed files
with
29 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters