Commit a14b70a2 authored by Iain Learmonth's avatar Iain Learmonth
Browse files

lint: BridgestrapStatsDownloader

parent de8f6682
Pipeline #10745 passed with stage
in 2 minutes and 35 seconds
......@@ -3,8 +3,6 @@
package org.torproject.metrics.collector.bridgestrap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.torproject.descriptor.BridgestrapStats;
import org.torproject.descriptor.Descriptor;
import org.torproject.descriptor.DescriptorParser;
......@@ -18,6 +16,9 @@ import org.torproject.metrics.collector.downloader.Downloader;
import org.torproject.metrics.collector.persist.BridgestrapStatsPersistence;
import org.torproject.metrics.collector.persist.PersistenceUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
......@@ -88,7 +89,8 @@ public class BridgestrapStatsDownloader extends CollecTorMain {
downloadedBytes, null, null)) {
if (descriptor instanceof BridgestrapStats) {
BridgestrapStats bridgestrapStats = (BridgestrapStats) descriptor;
LocalDateTime bridgestrapStatsEnd = bridgestrapStats.bridgestrapStatsEnd();
LocalDateTime bridgestrapStatsEnd =
bridgestrapStats.bridgestrapStatsEnd();
bridgestrapStatsEnds.add(bridgestrapStatsEnd);
BridgestrapStatsPersistence persistence
= new BridgestrapStatsPersistence(bridgestrapStats);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment