diff --git a/packages/at_secondary_server/pubspec.yaml b/packages/at_secondary_server/pubspec.yaml index 585a597e3..03be29b74 100644 --- a/packages/at_secondary_server/pubspec.yaml +++ b/packages/at_secondary_server/pubspec.yaml @@ -22,7 +22,7 @@ dependencies: at_utils: 3.0.15 at_chops: 1.0.4 at_lookup: 3.0.40 - at_server_spec: 3.0.14 + at_server_spec: 3.0.15 at_persistence_spec: 2.0.14 at_persistence_secondary_server: 3.0.57 expire_cache: ^2.0.1 @@ -34,13 +34,6 @@ dependencies: yaml: 3.1.2 logging: 1.2.0 -dependency_overrides: - at_server_spec: - git: - url: https://github.com/atsign-foundation/at_server.git - path: packages/at_server_spec - ref: rate_limit_spec - dev_dependencies: test: ^1.24.4 coverage: ^1.6.1 diff --git a/packages/at_server_spec/lib/src/connection/inbound_connection.dart b/packages/at_server_spec/lib/src/connection/inbound_connection.dart index 08e550824..bab07d14b 100644 --- a/packages/at_server_spec/lib/src/connection/inbound_connection.dart +++ b/packages/at_server_spec/lib/src/connection/inbound_connection.dart @@ -1,7 +1,6 @@ import 'dart:io'; import 'package:at_server_spec/src/at_rate_limiter/at_rate_limiter.dart'; import 'package:at_server_spec/src/connection/at_connection.dart'; -import 'package:at_server_spec/src/rate_limiter/at_rate_limiter.dart'; abstract class InboundConnection extends AtConnection implements AtRateLimiter { ///Returns true if remote socket and remote port of this and connection matches diff --git a/packages/at_server_spec/lib/src/rate_limiter/at_rate_limiter.dart b/packages/at_server_spec/lib/src/rate_limiter/at_rate_limiter.dart deleted file mode 100644 index bd2a3d4f3..000000000 --- a/packages/at_server_spec/lib/src/rate_limiter/at_rate_limiter.dart +++ /dev/null @@ -1,18 +0,0 @@ -/// A rate limiter class that allows controlling the rate of requests within a specified time frame. -/// -/// This class provides a way to limit the number of requests that can be made -/// within a specified time frame. It keeps track of the timestamps of previous -/// requests and allows requests to be made only if they do not exceed the -/// maximum allowed requests per time frame. -abstract class AtRateLimiter { - /// The maximum number of requests allowed within the specified time frame. - late int maxRequestsPerTimeFrame; - - /// The duration of the time frame within which requests are limited. - late int timeFrameInMillis; - - /// Checks whether a new request is allowed based on the rate limiting rules. - /// - /// Returns `true` if the request is allowed, or `false` if it exceeds the rate limit. - bool isRequestAllowed(); -} diff --git a/tests/at_functional_test/pubspec.yaml b/tests/at_functional_test/pubspec.yaml index f688db31a..e0a4919e0 100644 --- a/tests/at_functional_test/pubspec.yaml +++ b/tests/at_functional_test/pubspec.yaml @@ -16,7 +16,7 @@ dependencies: ref: trunk at_chops: ^1.0.1 at_lookup: ^3.0.32 - at_commons: ^3.0.53 + at_commons: ^3.0.55 uuid: ^3.0.7 elliptic: ^0.3.8