Skip to content

Commit

Permalink
fix cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayko001 committed Jul 3, 2024
1 parent 01e70dc commit 012432f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ use std::env;
use supabase_wrappers::prelude::*;
use tokio::runtime::Runtime;
pgrx::pg_module_magic!();
use pgrx::pg_sys::panic::ErrorReport;
use std::time::Duration;
use urlencoding::encode;
use pgrx::pg_sys::panic::ErrorReport;

// convert response body text to rows
fn resp_to_rows(obj: &str, resp: &JsonValue, quals: &[Qual]) -> Vec<Row> {
Expand Down Expand Up @@ -271,10 +271,13 @@ impl ForeignDataWrapper<PrometheusFdwError> for PrometheusFdw {
Ok(())
}

fn validator(options: Vec<Option<String>>, catalog: Option<pg_sys::Oid>) -> PrometheusFdwResult<()> {
fn validator(
options: Vec<Option<String>>,
catalog: Option<pg_sys::Oid>,
) -> PrometheusFdwResult<()> {
if let Some(oid) = catalog {
if oid == FOREIGN_TABLE_RELATION_ID {
let _ =check_options_contain(&options, "object");
let _ = check_options_contain(&options, "object");
}
}
Ok(())
Expand Down

0 comments on commit 012432f

Please sign in to comment.