1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-08-09 04:22:45 +03:00

Merge the mas_graphql crate into the mas_handlers crate (#2783)

This commit is contained in:
reivilibre
2024-05-17 17:22:34 +01:00
committed by GitHub
parent 37a10aea96
commit 206d45bb31
35 changed files with 199 additions and 278 deletions

View File

@@ -57,7 +57,6 @@ sentry-tower = { version = "0.31.8", features = ["http"] }
mas-config.workspace = true
mas-data-model.workspace = true
mas-email.workspace = true
mas-graphql.workspace = true
mas-handlers = { workspace = true }
mas-http = { workspace = true, features = ["client"] }
mas-i18n.workspace = true

View File

@@ -22,7 +22,7 @@ use ipnetwork::IpNetwork;
use mas_data_model::SiteConfig;
use mas_handlers::{
passwords::PasswordManager, ActivityTracker, BoundActivityTracker, CookieManager, ErrorWrapper,
HttpClientFactory, MetadataCache,
GraphQLSchema, HttpClientFactory, MetadataCache,
};
use mas_i18n::Translator;
use mas_keystore::{Encrypter, Keystore};
@@ -50,7 +50,7 @@ pub struct AppState {
pub url_builder: UrlBuilder,
pub homeserver_connection: SynapseConnection,
pub policy_factory: Arc<PolicyFactory>,
pub graphql_schema: mas_graphql::Schema,
pub graphql_schema: GraphQLSchema,
pub http_client_factory: HttpClientFactory,
pub password_manager: PasswordManager,
pub metadata_cache: MetadataCache,
@@ -144,7 +144,7 @@ impl FromRef<AppState> for PgPool {
}
}
impl FromRef<AppState> for mas_graphql::Schema {
impl FromRef<AppState> for GraphQLSchema {
fn from_ref(input: &AppState) -> Self {
input.graphql_schema.clone()
}