udpate tor client methods for arti 1.2.4

This commit is contained in:
sneurlax 2024-06-22 12:23:59 -05:00
parent e0623fbe19
commit e5044543ba

View file

@ -1,10 +1,11 @@
import 'dart:io';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:tor_ffi_plugin/tor_ffi_plugin.dart';
import '../utilities/logger.dart';
import 'event_bus/events/global/tor_connection_status_changed_event.dart';
import 'event_bus/global_event_bus.dart';
import '../utilities/logger.dart';
import 'package:tor_ffi_plugin/tor_ffi_plugin.dart';
final pTorService = Provider((_) => TorService.sharedInstance);
@ -49,7 +50,7 @@ class TorService {
}) {
_tor ??= mockableOverride ?? Tor.instance;
_torDataDirPath ??= torDataDirPath;
_tor?.enable(torDataDirPath: torDataDirPath);
_tor?.start(torDataDirPath: torDataDirPath);
}
/// Start the Tor service.