Skip to content

Commit

Permalink
use tokio mutex
Browse files Browse the repository at this point in the history
  • Loading branch information
JanKaul committed Aug 5, 2024
1 parent 546199d commit 98add0b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ url = "^2.2"
uuid = { version = "1.3.2", features = ["serde", "v4"] }
itertools = "0.10.5"
derive-getters = "0.3.0"
tokio = { version = "1.0", features = ["sync"] }
tracing = "0.1"
tracing-futures = "0.2"

2 changes: 1 addition & 1 deletion datafusion_iceberg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ itertools = { workspace = true }
dashmap = "5.4.0"
uuid = { workspace = true }
thiserror = { workspace = true }
tokio = { version = "1.0", features = ["sync","rt-multi-thread"] }
tokio = { workspace = true }

[dev-dependencies]
tokio = "1"
Expand Down
1 change: 1 addition & 0 deletions iceberg-sql-catalog/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ sqlx = { version = "0.7.4", features = ["tls-rustls", "any", "sqlite", "postgres
thiserror.workspace = true
url.workspace = true
uuid = { version = "1.7.0", features = ["v4"] }
tokio = { workspace = true }

[dev-dependencies]
tokio = "1"
Expand Down
2 changes: 1 addition & 1 deletion iceberg-sql-catalog/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use std::{collections::HashMap, sync::Arc};

use async_trait::async_trait;
use dashmap::DashMap;
use futures::lock::Mutex;
use iceberg_rust::{
catalog::{
bucket::Bucket,
Expand Down Expand Up @@ -33,6 +32,7 @@ use sqlx::{
any::{install_default_drivers, AnyRow},
AnyConnection, Connection, Row,
};
use tokio::sync::Mutex;
use uuid::Uuid;

use crate::error::Error;
Expand Down

0 comments on commit 98add0b

Please sign in to comment.