@@ -10,7 +10,6 @@ import 'package:_pub_shared/utils/http.dart';
1010import 'package:clock/clock.dart' ;
1111import 'package:gcloud/service_scope.dart' as ss;
1212
13- import '../../../service/rate_limit/rate_limit.dart' ;
1413import '../../account/like_backend.dart' ;
1514import '../../frontend/request_context.dart' ;
1615import '../shared/configuration.dart' ;
@@ -19,11 +18,6 @@ import '../shared/utils.dart';
1918
2019import 'search_service.dart' ;
2120
22- /// The number of requests allowed over [_searchRateLimitWindow]
23- const _searchRateLimit = 120 ;
24- const _searchRateLimitWindow = Duration (minutes: 2 );
25- const _searchRateLimitWindowAsText = 'last 2 minutes' ;
26-
2721/// Sets the search client.
2822void registerSearchClient (SearchClient client) =>
2923 ss.register (#_searchClient, client);
@@ -170,16 +164,6 @@ class SearchClient {
170164 );
171165 }
172166
173- if (sourceIp != null ) {
174- await verifyRequestCounts (
175- sourceIp: sourceIp,
176- operation: 'search' ,
177- limit: _searchRateLimit,
178- window: _searchRateLimitWindow,
179- windowAsText: _searchRateLimitWindowAsText,
180- );
181- }
182-
183167 if (skipCache) {
184168 return await searchFn ();
185169 } else {
0 commit comments