From f1b82a7b562d9e1397e503a56237d6f9d8c028e7 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sat, 6 Mar 2021 22:22:28 +0900 Subject: [PATCH] Update apollo_tracing.md --- docs/en/src/apollo_tracing.md | 2 +- docs/zh-CN/src/apollo_tracing.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/en/src/apollo_tracing.md b/docs/en/src/apollo_tracing.md index 3618564a..b6d1eeeb 100644 --- a/docs/en/src/apollo_tracing.md +++ b/docs/en/src/apollo_tracing.md @@ -9,6 +9,6 @@ use async_graphql::*; use async_graphql::extensions::ApolloTracing; let schema = Schema::build(Query, EmptyMutation, EmptySubscription) - .extension(ApolloTracing::default) // Enable ApolloTracing extension + .extension(ApolloTracing) // Enable ApolloTracing extension .finish(); ``` diff --git a/docs/zh-CN/src/apollo_tracing.md b/docs/zh-CN/src/apollo_tracing.md index 79819e27..a706616e 100644 --- a/docs/zh-CN/src/apollo_tracing.md +++ b/docs/zh-CN/src/apollo_tracing.md @@ -9,7 +9,7 @@ use async_graphql::*; use async_graphql::extensions::ApolloTracing; let schema = Schema::build(Query, EmptyMutation, EmptySubscription) - .extension(|| ApolloTracing::default()) // 启用ApolloTracing扩展 + .extension(ApolloTracing) // 启用ApolloTracing扩展 .finish(); -``` \ No newline at end of file +```