Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: schema cache retrying without backoff #3654

Merged
merged 1 commit into from
Jul 11, 2024

Commits on Jul 11, 2024

  1. fix: schema cache retrying without backoff

    Fixes PostgREST#3523.
    
    Now if there's a failure when obtaining the pg version OR schema cache,
    we do the same retrying process. This way we don't add two retries.
    
    Refactors and renames the "connectionWorker" to "schemaCacheLoader".
    This makes more sense since what we really want is the schema cache,
    the version is the pre-requisite for ensuring our
    schema cache queries work.
    
    Additionally, we no longer log ` Attempting to connect to the database...`
    at startup unnecessarily. This is only logged whenever there's a retry attempt.
    steve-chavez committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    69a4c5f View commit details
    Browse the repository at this point in the history