[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #16151 [metrics-lib]: Add new descriptor source to fetch descriptors from CollecTor via https



#16151: Add new descriptor source to fetch descriptors from CollecTor via https
-----------------------------+--------------------------
     Reporter:  karsten      |      Owner:  karsten
         Type:  enhancement  |     Status:  needs_review
     Priority:  normal       |  Milestone:
    Component:  metrics-lib  |    Version:
   Resolution:               |   Keywords:
Actual Points:               |  Parent ID:
       Points:               |
-----------------------------+--------------------------

Comment (by karsten):

 There, I pushed [https://gitweb.torproject.org/user/karsten/metrics-
 lib.git/commit/?h=task-16151&id=278b21a74b093bc1984b3df87a6ac877183ec7f2
 another commit] to [https://gitweb.torproject.org/user/karsten/metrics-
 lib.git/log/?h=task-16151 the task-16151 branch in my public repository]
 that implements my previous suggestion and incorporates some of your
 feedback.  I also "tested" it with a modified ExoneraTor version which
 worked just fine.

 For reference, here's how the modified ExoneraTor uses this new code:

 {{{
   private static void fetchDescriptors() {
     DescriptorCollector collector =
         DescriptorSourceFactory.createDescriptorCollector();
     collector.setLocalDirectory(new File(importDirString));
     collector.addRemoteDirectory(
         "/recent/relay-descriptors/consensuses/");
     collector.addRemoteDirectory(
         "/recent/relay-descriptors/server-descriptors/");
     collector.addRemoteDirectory("/recent/exit-lists/");
     collector.collectRemoteFiles();
     collector.deleteExtraneousLocalFiles();
   }
 }}}

 Another review would be much appreciated.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/16151#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs