Document use of redundant feature flag API call

This commit is contained in:
Henry Mercer 2022-01-05 14:49:12 +00:00
parent efded22908
commit 9de1702400
3 changed files with 9 additions and 1 deletions

View file

@ -111,6 +111,10 @@ async function run() {
repositoryNwo,
logger
);
// We currently perform an API request in both the `init` and `analyze` Actions to determine
// what feature flags are enabled. At the time of writing, this redundant API call is acceptable
// to us, but if we wanted to avoid it, we could do so by serializing the feature flags as part
// of the config file.
void featureFlags.preloadFeatureFlags();
await runFinalize(outputDir, threads, memory, config, logger);