mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 08:10:10 +00:00
fix(gateway): log close code, correctly set latency, don't spam redis error on identify
This commit is contained in:
parent
d1b617f6be
commit
88e136d22a
5 changed files with 91 additions and 48 deletions
|
|
@ -10,8 +10,6 @@ use tokio::sync::oneshot;
|
|||
use tracing::{error, info};
|
||||
use twilight_gateway::queue::Queue;
|
||||
|
||||
use libpk::util::redis::RedisErrorExt;
|
||||
|
||||
pub fn new(redis: RedisPool) -> RedisQueue {
|
||||
RedisQueue {
|
||||
redis,
|
||||
|
|
@ -69,8 +67,7 @@ async fn request_inner(redis: RedisPool, concurrency: u32, shard_id: u32, tx: on
|
|||
Some(SetOptions::NX),
|
||||
false,
|
||||
)
|
||||
.await
|
||||
.to_option_or_error();
|
||||
.await;
|
||||
match done {
|
||||
Ok(Some(_)) => {
|
||||
info!(shard_id, bucket, "got allowance!");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue