Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ion-elgreco committed Apr 16, 2024
1 parent 1401d18 commit e67996a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,12 @@ fn rt() -> PyResult<tokio::runtime::Runtime> {
tokio::runtime::Runtime::new().map_err(|err| PyRuntimeError::new_err(err.to_string()))
}


lazy_static! {
#[derive(Debug)]
pub static ref TOKIO_RT: tokio::runtime::Runtime = tokio::runtime::Runtime::new()
.expect("Failed to create a tokio runtime.");
}



#[derive(FromPyObject)]
enum PartitionFilterValue<'a> {
Single(&'a str),
Expand Down Expand Up @@ -127,7 +124,9 @@ impl RawDeltaTable {
.map_err(PythonError::from)?;
}

let table = TOKIO_RT.block_on(builder.load()).map_err(PythonError::from)?;
let table = TOKIO_RT
.block_on(builder.load())
.map_err(PythonError::from)?;
Ok(RawDeltaTable {
_table: table,
_config: FsConfig {
Expand Down

0 comments on commit e67996a

Please sign in to comment.