fix clippy
This commit is contained in:
parent
0f348a89c3
commit
1979d3310c
@ -20,7 +20,7 @@ use std::collections::VecDeque;
|
|||||||
use std::net::SocketAddr;
|
use std::net::SocketAddr;
|
||||||
use std::sync::atomic::AtomicU32;
|
use std::sync::atomic::AtomicU32;
|
||||||
use std::sync::{Arc, atomic::AtomicBool};
|
use std::sync::{Arc, atomic::AtomicBool};
|
||||||
use std::time::{Instant, SystemTime, UNIX_EPOCH};
|
use std::time::{SystemTime, UNIX_EPOCH};
|
||||||
use tokio::io::{AsyncReadExt, AsyncWriteExt};
|
use tokio::io::{AsyncReadExt, AsyncWriteExt};
|
||||||
use tokio::{
|
use tokio::{
|
||||||
net::{
|
net::{
|
||||||
@ -161,7 +161,7 @@ impl Client {
|
|||||||
if self
|
if self
|
||||||
.message_spam_cooldown
|
.message_spam_cooldown
|
||||||
.fetch_sub(1, std::sync::atomic::Ordering::Relaxed)
|
.fetch_sub(1, std::sync::atomic::Ordering::Relaxed)
|
||||||
<= 0
|
== 0
|
||||||
{
|
{
|
||||||
self.message_spam_cooldown
|
self.message_spam_cooldown
|
||||||
.store(spam_message_delay, std::sync::atomic::Ordering::Relaxed);
|
.store(spam_message_delay, std::sync::atomic::Ordering::Relaxed);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user