8000 Streaming, and resolved file ref should (only) be file by deboer-tim · Pull Request #1142 · icpctools/icpctools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Streaming, and resolved file ref should (only) be file #1142

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

deboer-tim
Copy link
Collaborator

Found this while working on #1133.

When resolving a file reference, the only possible type should be file, not the data (contents) of the file. The original choice of Object was to allow submission reactions to be streamed before the reaction video was done recording, but this path was changed years ago and the current streaming code (sending reactions while they were still being recorded) wasn't even working (and didn't support multiple streams).

This fixes the reaction streaming in ContestRESTService (moving it to a common helper on HttpHelper) and then correctly types all resolved file to File to improve typing/readability.

Found this while working on icpctools#1133.

When resolving a file reference, the only possible type should be file,
not the data (contents) of the file. The original choice of Object was
to allow submission reactions to be streamed before the reaction video
was done recording, but this path was changed years ago and the current
streaming code (sending reactions while they were still being recorded)
wasn't even working (and didn't support multiple streams).

This fixes the reaction streaming in ContestRESTService (moving it to a
common helper on HttpHelper) and then correctly types all resolved file
to File to improve typing/readability.
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
0