Adjust create_counter to avoid imposing an AtomicUsize import on users

This commit is contained in:
Michael Vines
2019-02-13 20:04:20 -08:00
committed by Grimes
parent 0f8ff07b51
commit 8790a92f07
15 changed files with 14 additions and 19 deletions

View File

@ -22,7 +22,7 @@ use solana_sdk::signature::{Keypair, KeypairUtil};
use solana_sdk::timing::{duration_as_ms, timestamp};
use std::net::UdpSocket;
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::mpsc::{channel, Receiver, RecvTimeoutError, Sender, SyncSender};
use std::sync::{Arc, RwLock};
use std::thread::{sleep, spawn, Result};