Skip to content

feat: make ProtocolStreamBuilder data source more flexible#509

Open
zizou0x wants to merge 1 commit intomainfrom
zz/allow-stream-from-any-source
Open

feat: make ProtocolStreamBuilder data source more flexible#509
zizou0x wants to merge 1 commit intomainfrom
zz/allow-stream-from-any-source

Conversation

@zizou0x
Copy link
Copy Markdown
Contributor

@zizou0x zizou0x commented Jan 20, 2026

Currently most of the TychoStreamBuilder configuration is leaked on ProtocolStreamBuilder interface. While this makes the building process slightly cleaner, it also makes the ProtocolStreamBuilder very strict regarding the data feed source. This PR aims to improve this by allowing to use a raw receiver instead of TychoStreamBuilder. This clearly separate these two structs and make the whole system more flexible, for example we can write unit tests with a custom feed.

This was made in a completely backward compatible way, if we like the idea we can start deprecating the old interfaces.

@github-project-automation github-project-automation bot moved this to Todo in Tycho Jan 20, 2026
@zizou0x zizou0x changed the title feat: make ProtocolStreamBuilder more flexible feat: make ProtocolStreamBuilder data source more flexible Jan 20, 2026
@zizou0x zizou0x force-pushed the zz/allow-stream-from-any-source branch from d716064 to e191ece Compare January 20, 2026 10:30
Currently most of the TychoStreamBuilder configuration is leaked on ProtocolStreamBuilder. While this makes the interface slightly cleaner, it also makes the ProtocolStreamBuilder very strict regarding the data feed. This PR aims to improve this by allowing to use a raw receiver instead of TychoStreamBuilder. This clearly separate these two structs and make the whole system more flexible, for example we can test with a custom feed.

This was made in a completely backward compatible way, if we like the idea we can start deprecating the old interfaces.
@zizou0x zizou0x force-pushed the zz/allow-stream-from-any-source branch from e191ece to 5019e63 Compare January 23, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant