Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

Add tor directory parameter to launch_tor #77

Merged
merged 1 commit into from
Mar 19, 2018

Conversation

juga0
Copy link
Collaborator

@juga0 juga0 commented Jan 31, 2018

Maybe this option should also be provided by cli and should not be an optional argument, as there would be always a default.

@coveralls
Copy link

coveralls commented Jan 31, 2018

Coverage Status

Coverage decreased (-0.08%) to 64.286% when pulling cb6c636 on juga0:feature/tordir into 64f5774 on TheTorProject:develop.

@@ -135,7 +135,7 @@ def got_newconsensus(event):


@defer.inlineCallbacks
def connect_to_tor(launch_tor, circuit_build_timeout, control_port=None,
def connect_to_tor(launch_tor, circuit_build_timeout, tordir=None, control_port=None,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nit: we're mostly using underscore separated variable names. It would be more consistent to use tor_dir instead of tordir as the variable name?

@@ -159,7 +159,7 @@ def connect_to_tor(launch_tor, circuit_build_timeout, control_port=None,
if launch_tor:
log.info("Spawning a new Tor instance.")
# TODO: Pass in data_dir directory so consensus can be cached
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This TODO should be removed in this PR

@DonnchaC
Copy link
Member

This PR does not significantly increase the speed of launching Tor when the UseMicroDescriptors option is changed after launching Tor. Tor is throwing away its microdescriptors and redownloading descriptors after each launch. It will be much faster launching Tor after #85 is merged.

@aagbsn aagbsn merged commit 500398f into TheTorProject:develop Mar 19, 2018
@juga0 juga0 deleted the feature/tordir branch March 20, 2018 17:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants