Fetching the flux source is now done through Config.

This commit is contained in:
dg
2023-05-12 21:25:54 +00:00
parent 68d22e7f54
commit e61eeb8c6f
25 changed files with 85 additions and 56 deletions

View File

@@ -234,7 +234,7 @@ std::unique_ptr<Filesystem> Filesystem::createFilesystemFromConfig()
std::shared_ptr<Encoder> encoder;
if (config.flux_source().type() != FluxSourceProto::NOT_SET)
{
fluxSource = FluxSource::create(config.flux_source());
fluxSource = globalConfig().getFluxSource();
decoder = Decoder::create(config.decoder());
}
if (config.flux_sink().type() == FluxSinkProto::DRIVE)