Skip to content

Feed poller silently swallows GetFeedsToRefresh errors #116

Description

@can3p

feeder.refreshFeeds (pkg/feedops/feeder/feeder.go:83) ignores the error from GetFeedsToRefresh:

feeds, err := GetFeedsToRefresh(ctx, f.db)
// err is never checked; the loop runs over nil and the function returns nil

When the query fails (DB down, bad migration), RSS polling stops without any log line. The slog.Warn("Failed to refreshFeeds") in RunPoller never fires.

Reproduction: run the poller against a database without the rss_feeds table, or with the connection dropped. Nothing is logged and no feeds are refreshed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions