diff --git a/crates/gateway/src/cache_api.rs b/crates/gateway/src/api.rs similarity index 100% rename from crates/gateway/src/cache_api.rs rename to crates/gateway/src/api.rs diff --git a/crates/gateway/src/main.rs b/crates/gateway/src/main.rs index 3b45e1b8..e61c3445 100644 --- a/crates/gateway/src/main.rs +++ b/crates/gateway/src/main.rs @@ -18,7 +18,7 @@ use tracing::{error, info, warn}; use twilight_gateway::{MessageSender, ShardId}; use twilight_model::gateway::payload::outgoing::UpdatePresence; -mod cache_api; +mod api; mod discord; mod event_awaiter; mod logger; @@ -189,7 +189,7 @@ async fn main() -> anyhow::Result<()> { )); set.spawn(tokio::spawn(async move { - match cache_api::run_server(cache, shard_state, runtime_config, awaiter.clone()).await { + match api::run_server(cache, shard_state, runtime_config, awaiter.clone()).await { Err(error) => { error!(?error, "failed to serve cache api"); }