Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
e-max committed Jan 27, 2019
1 parent 0550846 commit b0bc488
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions servers/src/mining/stratumserver/stratumserver_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -591,10 +591,6 @@ impl WorkersList {
self.stratum_stats.write().num_workers = self.workers_list.read().len();
}

//pub fn get_stats(&self, worker_id: usize) -> WorkerStats {
//let stats = self.stratum_stats.read().worker_stats;
//stats[worker_id]
//}
pub fn last_seen(&self, worker_id: usize) {
//self.stratum_stats.write().worker_stats[worker_id].last_seen = SystemTime::now();
self.update_stats(worker_id, |ws| ws.last_seen = SystemTime::now());
Expand Down

0 comments on commit b0bc488

Please sign in to comment.