moq-transcode polls for tracks by matching StreamError::NotFound

Đang mở
#10,329 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
distributed-systems

Hướng nghiên cứu

Start with broadcast::Consumer in moq-net and read AGENTS.md for the rule against matching on errors. The issue identifies polling loops in rs/moq-transcode/benches/ladder.rs:226 and nine locations in rs/moq-transcode/src/lib.rs; inspect how broadcasts and catalogs expose tracks. Done when callers can await a track or catalog appearing and those polling loops use that mechanism.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

moq-transcode polls for a track until it exists by matching Err(moq_net::Error::Stream(moq_net::StreamError::NotFound)) and yielding, against the "never match on errors" rule in AGENTS.md. It does this in rs/moq-transcode/benches/ladder.rs:226 and in nine tests in rs/moq-transcode/src/lib.rs (593, 883, 963, 1011, 1068, 1125, 1187, 1258, 1397).

The loop also busy-yields until the transcoder publishes its catalog. Learning a track exists should come through MoQ, so moq-net needs a way to await a broadcast's track (or its catalog) appearing, such as a future on broadcast::Consumer that resolves once the producer creates the track. Then these loops can await it instead.

Found while porting the bench to swole in moq-dev/moq#9854.

(Written by Claude Opus 5.5 with high)

Ngôn ngữ chính
Rust
Star
1.6k
Fork
251
Merge trung bình
10 giờ 10 phút
Pull request đã merge (30 ngày)
832

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của moq-dev/moq

Tất cả issue của moq-dev/moq

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.