Skip to content

Commit

Permalink
chore: remove typos and duplicate imports
Browse files Browse the repository at this point in the history
  • Loading branch information
khatruong2009 committed Nov 17, 2023
1 parent 51674b4 commit 720b585
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const Duration _baseRetryInterval = Duration(seconds: 10);

typedef _LogBatch = (List<QueuedItem> logQueues, List<InputLogEvent> logEvents);

/// {@template amplify_logging_cloudwatch_dart_dart.cloudwatch_logger_plugin}
/// {@template amplify_logging_cloudwatch_dart.cloudwatch_logger_plugin}
/// An [AWSLoggerPlugin] for sending logs to AWS CloudWatch Logs.
/// {@endtemplate}
class AmplifyLoggingCloudWatchDart extends LoggingPluginInterface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@

import 'dart:async';

import 'package:amplify_logging_cloudwatch_dart/src/sdk/src/cloud_watch_logs/cloud_watch_logs_client.dart';
import 'package:amplify_logging_cloudwatch_dart/src/sdk/src/cloud_watch_logs/model/create_log_stream_request.dart';
import 'package:amplify_logging_cloudwatch_dart/src/sdk/src/cloud_watch_logs/model/resource_already_exists_exception.dart';
import 'package:amplify_logging_cloudwatch_dart/src/sdk/cloud_watch_logs.dart';
import 'package:aws_common/aws_common.dart';
import 'package:intl/intl.dart';

/// {@template amplify_logging_cloudwatch_dart_dart.cloudwatch_logstream_provider}
/// {@template amplify_logging_cloudwatch_dart.cloudwatch_logstream_provider}
/// An interface to provide custom implementation for
/// [CloudWatchLogStreamProvider]
/// {@endtemplate}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import 'package:amplify_core/amplify_core.dart';

/// {@template amplify_logging_cloudwatch_dart_dart.app_path_provider}
/// {@template amplify_logging_cloudwatch_dart.app_path_provider}
/// Provides App paths for amplify_logging_cloudwatch_dart package.
/// {@endtemplate}
class DartAppPathProvider implements AppPathProvider {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'dart:io';

import 'package:amplify_core/amplify_core.dart';

/// {@template amplify_logging_cloudwatch_dart_dart.app_path_provider}
/// {@template amplify_logging_cloudwatch_dart.app_path_provider}
/// Provides App paths for amplify_logging_cloudwatch_dart package.
/// {@endtemplate}
class DartAppPathProvider implements AppPathProvider {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import 'package:amplify_core/amplify_core.dart';

/// {@template amplify_logging_cloudwatch_dart_dart.app_path_provider}
/// {@template amplify_logging_cloudwatch_dart.app_path_provider}
/// Provides App paths for amplify_logging_cloudwatch_dart package.
/// {@endtemplate}
class DartAppPathProvider implements AppPathProvider {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'dart:collection';

import 'package:amplify_logging_cloudwatch_dart/src/queued_item_store/queued_item_store.dart';

/// {@template amplify_logging_cloudwatch_dart_dart.in_memory_queued_item_store}
/// {@template amplify_logging_cloudwatch_dart.in_memory_queued_item_store}
/// Stores string elements in device memory.
/// {@endtemplate}
class InMemoryQueuedItemStore implements QueuedItemStore {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ abstract interface class QueuedItemStore {
FutureOr<void> close();
}

/// {@template amplify_logging_cloudwatch_dart_dart.string_database_element}
/// {@template amplify_logging_cloudwatch_dart.string_database_element}
/// An item stored in the [QueuedItemStore].
/// {@endtemplate}
class QueuedItem {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import 'package:amplify_logging_cloudwatch_dart/src/file_storage/file_storage.da
import 'package:aws_signature_v4/aws_signature_v4.dart';
import 'package:meta/meta.dart';

/// {@template amplify_logging_cloudwatch_dart_dart.remote_logging_constraint_provider}
/// {@template amplify_logging_cloudwatch_dart.remote_logging_constraint_provider}
/// An Interface to provide custom implementation for
/// [RemoteLoggingConstraintProvider]
/// It gets the [LoggingConstraints] from a remote location and cache it.
Expand All @@ -19,7 +19,7 @@ abstract class RemoteLoggingConstraintProvider {
LoggingConstraints? get loggingConstraint;
}

/// {@template amplify_logging_cloudwatch_dart_dart.base_remote_constraints_provider}
/// {@template amplify_logging_cloudwatch_dart.base_remote_constraints_provider}
/// Base class for [RemoteLoggingConstraintProvider] to provide
/// [LoggingConstraints] from a remote location and cache it.
/// {@endtemplate}
Expand Down Expand Up @@ -160,7 +160,7 @@ base class BaseRemoteLoggingConstraintProvider
}
}

/// {@template amplify_logging_cloudwatch_dart_dart.default_remote_logging_constraint_provider}
/// {@template amplify_logging_cloudwatch_dart.default_remote_logging_constraint_provider}
/// Default implementation of [RemoteLoggingConstraintProvider] to fetch
/// [LoggingConstraints] from an http endpoint periodically.
/// {@endtemplate}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import 'dart:async';

/// {@template amplify_logging_cloudwatch_dart_dart.stoppable_timer}
/// {@template amplify_logging_cloudwatch_dart.stoppable_timer}
/// A Timer that can be stopped and started again.
///
/// The `callback` function is invoked repeatedly with [duration] intervals
Expand Down

0 comments on commit 720b585

Please sign in to comment.