Skip to content

Conversation

@mkrasnitski
Copy link
Collaborator

This allows the channel to be cloned by something other than the Client, (e.g. poise or any other framework that gets a client from Framework::init), so that messages can be sent directly to the manager.

In particular, ShardManagerMessage::Quit now holds a Result instead of just an error. This enables things like shutdown commands to send Ok(()) to the manager to cleanly close the connection.

This allows the channel to be cloned by something other than the
`Client`, (e.g. poise or any other framework that gets a client from
`Framework::init`), so that messages can be sent directly to the
manager.

In particular, `ShardManagerMessage::Quit` now holds a `Result` instead
of just an error. This enables things like shutdown commands to send
`Ok(())` to the manager to cleanly close the connection.
@github-actions github-actions bot added the gateway Related to the `gateway` module. label Mar 7, 2025
@mkrasnitski mkrasnitski closed this Mar 7, 2025
@mkrasnitski
Copy link
Collaborator Author

Supeseded by #3120.

@mkrasnitski mkrasnitski deleted the manager-tx branch March 11, 2025 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Related to the `gateway` module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant