supabase / pg_net

A PostgreSQL extension that enables asynchronous (non-blocking) HTTP/HTTPS requests with SQL
https://supabase.github.io/pg_net
Apache License 2.0
213 stars 16 forks source link

refactor: background worker logic into functions #134

Closed steve-chavez closed 1 month ago

steve-chavez commented 1 month ago

This way the logic is easier to understand, essentially:

delete_expired_responses(guc_ttl);
consume_request_queue(curl_mhandle);
insert_curl_responses(curl_mhandle);

Also cleanups tabs and instead uses two spaces for indentation.