Separate read pool and harden fanout state handling

This commit is contained in:
2026-03-18 17:21:58 +01:00
parent dce473662f
commit c377ed4b62
24 changed files with 626 additions and 258 deletions

View File

@@ -3,6 +3,9 @@ import Config
config :postgrex, :json_library, JSON
config :parrhesia,
database: [
separate_read_pool?: config_env() != :test
],
moderation_cache_enabled: true,
relay_url: "ws://localhost:4413/relay",
nip43: [
@@ -120,6 +123,7 @@ config :parrhesia,
]
config :parrhesia, Parrhesia.Repo, types: Parrhesia.PostgresTypes
config :parrhesia, Parrhesia.ReadRepo, types: Parrhesia.PostgresTypes
config :parrhesia, ecto_repos: [Parrhesia.Repo]