Skip to content

Commit

Permalink
refactor(save drive state) remove logs at sync cubit PE-1935
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagocarvalhodev committed Jul 26, 2022
1 parent 9f37843 commit 42ef7cb
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/blocs/sync/sync_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,6 @@ class SyncCubit extends Cubit<SyncState> {

_syncProgress = _syncProgress.copyWith(drivesCount: drives.length);

syncFormatedPrint('Current block height number $currentBlockHeight');

drives.forEach((drive) {
syncFormatedPrint('Drive last block height: ${drive.lastBlockHeight!}');
});

final driveSyncProcesses = drives.map((drive) => _syncDrive(
drive.id,
lastBlockHeight: calculateSyncLastBlockHeight(
Expand Down Expand Up @@ -564,8 +558,6 @@ class SyncCubit extends Cubit<SyncState> {
200 ~/ (_syncProgress.drivesCount - _syncProgress.drivesSynced);
var currentDriveEntitiesSynced = 0;
var driveSyncProgress = 0.0;
syncFormatedPrint('_syncSecondPhase: $currentBlockHeight');

syncFormatedPrint(
'number of drives at get metadata phase : ${_syncProgress.numberOfDrivesAtGetMetadataPhase}');

Expand Down Expand Up @@ -628,8 +620,6 @@ class SyncCubit extends Cubit<SyncState> {

// Handle the last page of newEntities, i.e; There's nothing more to sync
if (newEntities.length < pageCount) {
syncFormatedPrint(
'Saving last block height at _paginateProcess. $currentBlockHeight');
// Reset the sync cursor after every sync to pick up files from other instances of the app.
// (Different tab, different window, mobile, desktop etc)
await _driveDao.writeToDrive(DrivesCompanion(
Expand Down

0 comments on commit 42ef7cb

Please sign in to comment.