Skip to content

Commit

Permalink
adjust docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrasnitski committed Jan 2, 2024
1 parent b352dbb commit c299ded
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/gateway/bridge/shard_queuer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,6 @@ impl ShardQueuer {
#[must_use]
pub struct ShardQueue {
buckets: HashMap<u16, VecDeque<ShardId>>,
/// The maximum amount of shards that can be started at once.
///
/// This is almost always 1, but for large bots (in more than 150,000 servers) it can be
/// larger.
max_concurrency: NonZeroU16,
}

Expand Down
3 changes: 3 additions & 0 deletions src/model/gateway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,9 @@ pub struct SessionStartLimit {
/// The total number of session starts within the ratelimit period allowed.
pub total: u64,
/// The number of identify requests allowed per 5 seconds.
///
/// This is almost always 1, but for large bots (in more than 150,000 servers) it can be
/// larger.
pub max_concurrency: NonZeroU16,
}

Expand Down

0 comments on commit c299ded

Please sign in to comment.