Skip to content

Comments

Fix request update to support pause/resume#789

Open
TimEvens wants to merge 11 commits intomainfrom
fix-request-update
Open

Fix request update to support pause/resume#789
TimEvens wants to merge 11 commits intomainfrom
fix-request-update

Conversation

@TimEvens
Copy link
Collaborator

@TimEvens TimEvens commented Feb 18, 2026

This change also combines libquicr pub/sub tracking by request id to single requests map.

@TimEvens
Copy link
Collaborator Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f84d534de8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +426 to +430
TrackHandler& operator=(const TrackHandler& other)
{
handler = other.handler;
return *this;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
TrackHandler& operator=(const TrackHandler& other)
{
handler = other.handler;
return *this;
}
TrackHandler& operator=(const TrackHandler& other) = default;

auto sub_handler = static_cast<SubscribeTrackHandler*>(sub_it->second.handler.get());

auto expires = msg.parameters.Get<std::uint64_t>(messages::ParameterType::kExpires);
if (auto sub_handler = sub_it->second.Get<SubscribeTrackHandler>(); sub_handler) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if (auto sub_handler = sub_it->second.Get<SubscribeTrackHandler>(); sub_handler) {
if (auto sub_handler = sub_it->second.Get<SubscribeTrackHandler>()) {

static_cast<FetchTrackHandler*>(fetch_it->second.handler.get())->SetLatestLocation(msg.end_location);
static_cast<FetchTrackHandler*>(fetch_it->second.handler.get())
->SetStatus(FetchTrackHandler::Status::kOk);
if (auto h = fetch_it->second.Get<FetchTrackHandler>(); h) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Technically don't need to add the ; h since the result of Get returns a pointer which is implicitly checked for null.

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.

3 participants