Merge pull request 'made it like 10x faster' (#2) from dev-gentoowo into main
Reviewed-on: vanten-s/irc-e2e#2
This commit is contained in:
commit
dedeacc003
|
@ -34,7 +34,7 @@ fn bytes_to_privmsg_base64(message: Vec<u8>, reciever: &str) -> String {
|
||||||
.encode(message)
|
.encode(message)
|
||||||
.chars()
|
.chars()
|
||||||
.collect::<Vec<char>>()
|
.collect::<Vec<char>>()
|
||||||
.chunks(50)
|
.chunks(500)
|
||||||
.map(|c| c.iter().collect::<String>())
|
.map(|c| c.iter().collect::<String>())
|
||||||
{
|
{
|
||||||
command.push_str(&format!("PRIVMSG {reciever} :{line}\r\n"));
|
command.push_str(&format!("PRIVMSG {reciever} :{line}\r\n"));
|
||||||
|
|
Loading…
Reference in a new issue