Skip to content

Conversation

@kespinola
Copy link
Collaborator

@kespinola kespinola commented Aug 9, 2025

Changes

  • The SourceTrait now defines its config type as part of the trait definition.
  • Add DynSource which keeps consistent interface for starting a source.
  • Refactor builder to take .source<SourceTrait>::()

The SourceTrait now defines its config type as part of the trait definition.
Add DynSource which keeps consistent interface for starting a source.
Refactor builder to take .source<SourceTrait>::().
@kespinola kespinola force-pushed the espi/vix-12-make-vixentoml-config-file-dynamically-contain-source-config branch from e26c5e3 to ccdd5fb Compare August 9, 2025 22:13
let config = self
.sources_cfg
.get(&source.name())
.expect("No source config");
Copy link
Contributor

Choose a reason for hiding this comment

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

Very likely way too nitpicky comment but I maybe mention the source name in the error would make it easier to find out which source is failing. Here before we had this:

  "Source config not found for {source_name}. This should be set in your vixen \
   toml config file in the `[source.{source_name}]` section."

@fernandodeluret fernandodeluret merged commit 0c631bd into fernandod/vix-12-make-vixentoml-config-file-dynamically-contain-source-config Aug 12, 2025
1 of 2 checks passed
kespinola added a commit that referenced this pull request Aug 19, 2025
* Make vixen.toml config file dynamically contain sources config

* `feat` Expose fumarole prometheus metrics under crate feature flag

* Remove setters and getters from SourceTrait (#116)

The SourceTrait now defines its config type as part of the trait definition.
Add DynSource which keeps consistent interface for starting a source.
Refactor builder to take .source<SourceTrait>::().

* `chore` Bump fumarole client lib and fix lints

* Fix import typo at README.md (#117)

* Solana snapshot source

* `chore` Fix lint issues and imports

* `chore` Fix fmt lints

* `fix` Update config to use default values and flatten for streams

* `chore` Remove global filters

* `feat` Make slot update field use a boolean flag

* chore: Add back slotprefilter for consistent filter API

---------

Co-authored-by: Fernando <[email protected]>
Co-authored-by: riprsa <[email protected]>
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