Merge branch 'main' of github.com:uabluerail/indexer

This commit is contained in:
mathan 2024-02-22 18:56:19 -08:00
commit 78a17bf238
11 changed files with 154 additions and 46 deletions

View file

@ -79,6 +79,9 @@ func runMain(ctx context.Context) error {
}
// TODO: check for changes and start/stop consumers as needed
for _, remote := range remotes {
if remote.Disabled {
continue
}
c, err := NewConsumer(ctx, &remote, db)
if err != nil {
return fmt.Errorf("failed to create a consumer for %q: %w", remote.Host, err)