Skip to content

Conversation

@mangas
Copy link
Contributor

@mangas mangas commented Jul 22, 2022

No description provided.

@mangas mangas force-pushed the filipe/substreams-option-host branch 2 times, most recently from 440277d to 3d977af Compare July 22, 2022 14:48
@mangas mangas requested review from leoyvens and maoueh July 22, 2022 14:48
@mangas mangas marked this pull request as ready for review July 22, 2022 14:48
@leoyvens
Copy link
Collaborator

Why isn't it sufficient to use a fake RuntimeHostBuilder?

@leoyvens
Copy link
Collaborator

Hmm I see that replacing the RuntimeHostBuilder isn't so simple.

@mangas
Copy link
Contributor Author

mangas commented Jul 22, 2022

Hmm I see that replacing the RuntimeHostBuilder isn't so simple.

This way is also more explicit and requires less "hacks" IMO

@mangas mangas force-pushed the filipe/substreams-option-host branch from 9b5a65b to fe0f9c1 Compare July 25, 2022 13:05
@mangas mangas requested a review from leoyvens July 25, 2022 13:06
@mangas mangas changed the title Filipe/substreams option host Filipe/substreams option runtime Jul 25, 2022
@mangas mangas force-pushed the filipe/substreams-option-host branch from fe0f9c1 to 0786f72 Compare July 25, 2022 13:09
.map(|template| template.runtime())
.chain(self.data_sources.iter().map(|source| source.runtime()))
.filter_map(|template| template.runtime())
.chain(ds_runtimes.into_iter())
Copy link
Collaborator

Choose a reason for hiding this comment

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

This can be kept as it was before, just with filter_map instead of map.

@mangas mangas force-pushed the filipe/substreams-option-host branch from 2bdfe51 to e58839c Compare July 25, 2022 14:30
@mangas mangas requested a review from leoyvens July 25, 2022 14:30
@mangas mangas force-pushed the filipe/substreams-option-host branch from e58839c to 5024c4c Compare July 25, 2022 15:35
@mangas mangas merged commit 4baec90 into master Jul 25, 2022
@mangas mangas deleted the filipe/substreams-option-host branch July 25, 2022 19:26
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