From 7b6b59879e83888638dd55197aa39dc65ea459ab Mon Sep 17 00:00:00 2001 From: vanten-s Date: Sun, 8 Oct 2023 12:59:06 +0200 Subject: [PATCH] made it like 10x faster --- src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 55cbe28..49fdd1c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,9 +10,7 @@ use std::sync::mpsc; use std::thread; use std::{env, fs}; -mod encryption; mod listener_server; -mod message_stream; mod writer_client; macro_rules! try_recv { @@ -35,7 +33,7 @@ fn bytes_to_privmsg_base64(message: Vec, reciever: &str) -> String { .encode(message) .chars() .collect::>() - .chunks(50) + .chunks(500) .map(|c| c.iter().collect::()) { command.push_str(&format!("PRIVMSG {reciever} :{line}\r\n"));