Skip to content

refactor: add comments and minor API improvements to api.rs#180

Open
redshiftzero wants to merge 1 commit intoreorganize-typesfrom
refactor2
Open

refactor: add comments and minor API improvements to api.rs#180
redshiftzero wants to merge 1 commit intoreorganize-typesfrom
refactor2

Conversation

@redshiftzero
Copy link
Contributor

incrementally adding comments to files, and making small API improvements, starting with api.rs

⚠️ this is a PR into #179, will rebase on main once that is merged

@redshiftzero redshiftzero requested review from a team as code owners March 8, 2026 10:47
/// message IDs that were addressed to it, discarding the rest.
///
/// Returns the set of [`Uuid`]s for messages belonging to this client.
fn solve_fetch_challenges(&self, challenges: &[FetchResponse]) -> Result<Vec<Uuid>, Error>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

previously this took a Vec<FetchResponse> - do we want to consume the challenges here? if not, we can use the pattern from https://rust-lang.github.io/api-guidelines/flexibility.html#c-caller-control

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant