mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-16 17:27:39 +00:00
udpate tor client methods for arti 1.2.4
This commit is contained in:
parent
e0623fbe19
commit
e5044543ba
1 changed files with 4 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue