Skip to content

Commit

Permalink
refactor(gateway): inline future into shard (#2226)
Browse files Browse the repository at this point in the history
Unifies the core shard logic into one module to make it easier to reason about. Catches one bug in which the first shard reconnect attempt no longer has a delay of one second.
  • Loading branch information
vilgotf authored Jul 8, 2023
1 parent 36f8377 commit fa99f5c
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 219 deletions.
172 changes: 0 additions & 172 deletions twilight-gateway/src/future.rs

This file was deleted.

1 change: 0 additions & 1 deletion twilight-gateway/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ mod command;
mod config;
mod connection;
mod event;
mod future;
#[cfg(any(feature = "zlib-stock", feature = "zlib-simd"))]
mod inflater;
mod json;
Expand Down
Loading

0 comments on commit fa99f5c

Please sign in to comment.