Skip to content

Conversation

topi314
Copy link
Member

@topi314 topi314 commented Aug 4, 2025

No description provided.

@topi314 topi314 force-pushed the feature/shardmanager-shard-state branch from 40cdcc7 to 4075702 Compare August 4, 2025 22:16
@topi314 topi314 force-pushed the feature/shardmanager-shard-state branch from 4075702 to cb88deb Compare August 4, 2025 22:19
@topi314 topi314 self-assigned this Aug 4, 2025
@topi314 topi314 requested a review from Copilot August 4, 2025 22:20
Copilot

This comment was marked as outdated.

@topi314 topi314 force-pushed the feature/shardmanager-shard-state branch from cb88deb to 1d1221e Compare August 4, 2025 22:21
@topi314 topi314 requested a review from Copilot August 4, 2025 22:22
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces shard resumption functionality by adding a ResumeShard method and a ShardState struct to manage session IDs and sequences for Discord shards. This enables the shard manager to resume existing shard connections instead of always creating new ones.

  • Add ShardState struct to store session ID and sequence for shard resumption
  • Change ShardIDs map from map[int]struct{} to map[int]ShardState to track shard states
  • Add ResumeShard method to allow resuming specific shards with session data

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
sharding/shard_manager_config.go Adds ShardState struct and updates configuration to support shard state tracking
sharding/shard_manager.go Implements ResumeShard method and updates shard opening logic to handle session resumption

@topi314 topi314 force-pushed the feature/shardmanager-shard-state branch from 1ebd392 to 54e2700 Compare August 6, 2025 19:38
@topi314 topi314 marked this pull request as ready for review August 9, 2025 22:19
@topi314 topi314 merged commit b03b02e into master Aug 9, 2025
4 checks passed
@topi314 topi314 deleted the feature/shardmanager-shard-state branch August 9, 2025 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant