add a couple notes

This commit is contained in:
julian 2023-09-08 07:53:06 -06:00
parent 79c1dee7ad
commit 81bbdb1b62
2 changed files with 6 additions and 1 deletions

View file

@ -168,7 +168,11 @@ void main() async {
await Hive.openBox<dynamic>(DB.boxNamePrefs);
await Prefs.instance.init();
// Prefs.instance.useTor = true; // For testing purposes only.
// TODO:
// This should be moved to happen during the loading animation instead of
// showing a blank screen for 4-10 seconds.
// Some refactoring will need to be done here to make sure we don't make any
// network calls before starting up tor
if (Prefs.instance.useTor) {
await TorService.sharedInstance.start();
}

View file

@ -57,6 +57,7 @@ class TorService {
// could throw an exception here or something so the caller
// is explicitly made aware of this
// TODO restart tor after that's been added to the tor-ffi crate
// (probably better to have a restart function separately)
return;
}