Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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.
@deboer-tim deboer-tim merged commit 9a4d18d into icpctools:main Jul 17, 2025
4 checks passed
@deboer-tim deboer-tim deleted the streaming branch July 17, 2025 12:58
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.

2 participants