From e59bbed56990d0b1774a9d609dfdaf8614e6c613 Mon Sep 17 00:00:00 2001 From: Kha Truong <64438356+khatruong2009@users.noreply.github.com> Date: Thu, 7 Sep 2023 09:49:19 -0700 Subject: [PATCH] chore: make isRunning variable privatge --- .../lib/src/remote_constraint_provider.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/logging_cloudwatch/aws_logging_cloudwatch/lib/src/remote_constraint_provider.dart b/packages/logging_cloudwatch/aws_logging_cloudwatch/lib/src/remote_constraint_provider.dart index 9501ed46b4..0f83ffa9e1 100644 --- a/packages/logging_cloudwatch/aws_logging_cloudwatch/lib/src/remote_constraint_provider.dart +++ b/packages/logging_cloudwatch/aws_logging_cloudwatch/lib/src/remote_constraint_provider.dart @@ -55,12 +55,12 @@ class DefaultRemoteLoggingConstraintProvider Timer? _timer; /// Whether the periodic fetch is running. - bool isRunning = false; + bool _isRunning = false; /// Stops the periodic fetch. void stop() { _timer?.cancel(); - isRunning = false; + _isRunning = false; } @override @@ -139,11 +139,11 @@ class DefaultRemoteLoggingConstraintProvider /// Refreshes the constraint from the endpoint periodically. Future _refreshConstraintPeriodically() async { - if (isRunning) { + if (_isRunning) { return; } - isRunning = true; + _isRunning = true; _timer?.cancel(); _timer = Timer.periodic(