mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 08:10:10 +00:00
feat(gateway): split off cache into separate package, rename package to 'gateway'
This commit is contained in:
parent
433603feaa
commit
abb01aaf2c
12 changed files with 1733 additions and 33 deletions
|
|
@ -7,8 +7,6 @@ use tracing::info;
|
|||
use twilight_gateway::Event;
|
||||
use twilight_http::Client as HttpClient;
|
||||
|
||||
use crate::cache;
|
||||
|
||||
lazy_static::lazy_static! {
|
||||
static ref ALLOWED_EVENTS: Vec<&'static str> = [
|
||||
"INTERACTION_CREATE",
|
||||
|
|
@ -27,7 +25,7 @@ pub async fn handle_event<'a>(
|
|||
_db: Pool,
|
||||
rconn: redis::Client
|
||||
) -> anyhow::Result<()> {
|
||||
cache::handle_event(event.clone(), rconn.clone()).await?;
|
||||
myriad::cache::handle_event(event.clone(), rconn.clone()).await?;
|
||||
|
||||
match event {
|
||||
Event::GatewayInvalidateSession(resumable) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue