[mob] Lint fixes

This commit is contained in:
Neeraj Gupta 2024-04-02 17:39:03 +05:30
parent 8e6617eed5
commit 172678dc42

View file

@ -370,6 +370,7 @@ class ClusterFeedbackService {
Set<int> ignoredClusters, {
int minClusterSize = 1,
int maxClusterInCurrentRun = 500,
int maxEmbeddingToRead = 10000,
}) async {
final faceMlDb = FaceMLDataDB.instance;
_logger.info(
@ -416,9 +417,9 @@ class ClusterFeedbackService {
w?.log(
'reading embeddings for $maxClusterInCurrentRun or ${sortedClusterIDs.length} clusters',
);
final int maxEmbeddingToRead = 10000;
int currentPendingRead = 0;
List<int> clusterIdsToRead = [];
final List<int> clusterIdsToRead = [];
for (final clusterID in sortedClusterIDs) {
if (maxClusterInCurrentRun-- <= 0) {
break;