Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ticket32487 squashed and merged #1669

Merged

Conversation

Labels
None yet
Projects
None yet
3 participants
@nmathewson
Copy link
Contributor

@nmathewson nmathewson commented Jan 16, 2020

No description provided.

nmathewson added 13 commits Jan 16, 2020
For now, this module is enabled whenever the relay module is
enabled, and disabled whenever the relay module is disabled.  Though
they are logically separate, the use cases for running one without
the other are rare enough that we don't really want to support
compiling them independently.
Only directory caches actually need to spool things.
This function had some XXX comments indicating (correctly) that it
was not actually used by the dirserver code, and that only the
controller still used it.
This is cleaner than iterating over the spool.
To make Tor still work, we define a minimal dircache_stub.c file
that defines the entry points to the module that can actually be
seen by the compiler when we're building with dircache and relay
disabled.
I had incorrectly identified these functions as dircache-only, when
in fact they apply to everyone who acts a directory client.
This is an automated commit, generated by this command:

./scripts/maint/rename_c_identifier.py \
        directory_must_use_begindir dirclient_must_use_begindir \
        directory_fetches_from_authorities dirclient_fetches_from_authorities \
        directory_fetches_dir_info_early dirclient_fetches_dir_info_early \
        directory_fetches_dir_info_later dirclient_fetches_dir_info_later \
        directory_too_idle_to_fetch_descriptors dirclient_too_idle_to_fetch_descriptors
This may help the compiler eliminate deadcode.
@coveralls
Copy link

@coveralls coveralls commented Jan 16, 2020

Pull Request Test Coverage Report for Build 7805

  • 48 of 98 (48.98%) changed or added relevant lines in 12 files are covered.
  • 15 unchanged lines in 4 files lost coverage.
  • Overall coverage decreased (-0.02%) to 63.319%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/feature/nodelist/node_select.c 1 2 50.0%
src/feature/nodelist/nodelist.c 0 1 0.0%
src/core/mainloop/mainloop.c 1 3 33.33%
src/app/config/config.c 0 4 0.0%
src/feature/dirclient/dirclient.c 2 6 33.33%
src/feature/control/control_getinfo.c 0 38 0.0%
Files with Coverage Reduction New Missed Lines %
src/app/config/config.c 1 79.76%
src/core/mainloop/mainloop.c 1 37.55%
src/feature/dirauth/shared_random.c 4 85.0%
src/feature/dirauth/dirvote.c 9 64.85%
Totals Coverage Status
Change from base Build 7796: -0.02%
Covered Lines: 49949
Relevant Lines: 78885

💛 - Coveralls

@torproject-pusher torproject-pusher merged commit 3c89622 into torproject:master Jan 17, 2020
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment