做了一些小修改
This commit is contained in:
@@ -9,6 +9,7 @@ pub struct Configuration {
|
||||
username_prefix: String,
|
||||
count: i32,
|
||||
proxy_url: String,
|
||||
reco_words: Vec<String>
|
||||
}
|
||||
|
||||
impl Configuration {
|
||||
@@ -46,6 +47,7 @@ impl Configuration {
|
||||
username_prefix: "".to_string(),
|
||||
count: 300,
|
||||
proxy_url: "http://uu-proxy.com/api/get_proxies?id=RZ7GS5ZYTA&size=1&schemes=socks5&support_https=false&format=json".to_string(),
|
||||
reco_words: vec!["AntiAttack".to_string()],
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ async fn main() {
|
||||
let configuration = Configuration::new("config.json");
|
||||
let configuration_rc = Arc::new(configuration);
|
||||
|
||||
for i in 0..configuration_rc.count() {
|
||||
for _ in 0..configuration_rc.count() {
|
||||
let lock_clone = thread_lock.clone();
|
||||
let configuration_rc_clone = configuration_rc.clone();
|
||||
// let handle = tokio::spawn(async move {
|
||||
|
||||
Reference in New Issue
Block a user