Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3862faf authored by Guillaume Jacquart's avatar Guillaume Jacquart
Browse files

fix:3040: Add comment about serverdown backoff delays

parent ea406a6f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -94,7 +94,9 @@ public class NotesRepository {

    private static final String TAG = NotesRepository.class.getSimpleName();

    // Delay between first ServerDownException occurs, and next synchronisation attempt: 5seconds.
    private static final long MIN_DELAY_AFTER_FAILED_SYNCHRONIZATION = 5000L;
    // MAX backoff delay after a ServerDownException: 24 hours
    private static final long MAX_DELAY_BETWEEN_SYNCHRONIZATIONS = 24 * 60 * 60 * 1000;

    private static NotesRepository instance;