From 89e74089bbaf4c2aa00ec956a60e78eb3e54874e Mon Sep 17 00:00:00 2001 From: nhannah Date: Thu, 16 Nov 2023 21:59:31 -0700 Subject: [PATCH] update naming --- links/gql_dedupe_link/lib/gql_dedupe_link.dart | 8 ++++---- links/gql_dedupe_link/test/gql_dedupe_link_test.dart | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/links/gql_dedupe_link/lib/gql_dedupe_link.dart b/links/gql_dedupe_link/lib/gql_dedupe_link.dart index da0308e2..5539710b 100644 --- a/links/gql_dedupe_link/lib/gql_dedupe_link.dart +++ b/links/gql_dedupe_link/lib/gql_dedupe_link.dart @@ -8,18 +8,18 @@ import "package:gql_link/gql_link.dart"; /// A [Link] to deduplicate [Request]s class DedupeLink extends Link { - final List _nonDedupeTypes; + final List _nonDedupeOperationTypes; final Map> _inFlight = {}; - DedupeLink({List nonDedupeTypes = const []}) - : _nonDedupeTypes = nonDedupeTypes; + DedupeLink({List nonDedupeOperationTypes = const []}) + : _nonDedupeOperationTypes = nonDedupeOperationTypes; @override Stream request( Request request, [ NextLink? forward, ]) { - final shouldDedupe = !_nonDedupeTypes.contains( + final shouldDedupe = !_nonDedupeOperationTypes.contains( request.operation.getOperationType(), ); diff --git a/links/gql_dedupe_link/test/gql_dedupe_link_test.dart b/links/gql_dedupe_link/test/gql_dedupe_link_test.dart index c4279af3..67d19161 100644 --- a/links/gql_dedupe_link/test/gql_dedupe_link_test.dart +++ b/links/gql_dedupe_link/test/gql_dedupe_link_test.dart @@ -220,7 +220,7 @@ void main() { }); final link = Link.from([ - DedupeLink(nonDedupeTypes: [OperationType.query]), + DedupeLink(nonDedupeOperationTypes: [OperationType.query]), mockLink, ]);