Skip to content

Commit b12b190

Browse files
committed
fix: replace bb8 with tokio-postgres in primitives crate
1 parent f55119b commit b12b190

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

primitives/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = ["Lachezar Lechev <[email protected]>, Omidiora Samuel <[email protected]
55
edition = "2018"
66

77
[features]
8-
postgres = ["postgres-types", "bytes", "bb8-postgres"]
8+
postgres = ["postgres-types", "bytes", "tokio-postgres"]
99

1010
[dependencies]
1111
# Futures
@@ -39,7 +39,7 @@ rand = { version = "^0.6" }
3939
# postgres feature
4040
postgres-types = {version = "0.1.0-alpha.1", optional = true}
4141
bytes = { version = "0.4.12", optional = true}
42-
bb8-postgres = {git = "https://github.com/djc/bb8", branch = "async-await", features = ["with-chrono-0_4", "with-serde_json-1"], optional = true}
42+
tokio-postgres = {version = "0.5.0-alpha.1", optional = true}
4343

4444
# Other
4545
lazy_static = "1.4.0"

primitives/src/channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,11 @@ impl Error for ChannelError {
198198
pub mod postgres {
199199
use super::ChannelId;
200200
use super::{Channel, ChannelSpec};
201-
use bb8_postgres::tokio_postgres::{types::Json, Row};
202201
use bytes::BytesMut;
203202
use hex::FromHex;
204203
use postgres_types::{FromSql, IsNull, ToSql, Type};
205204
use std::error::Error;
205+
use tokio_postgres::{types::Json, Row};
206206

207207
impl<'a> FromSql<'a> for ChannelId {
208208
fn from_sql(ty: &Type, raw: &'a [u8]) -> Result<Self, Box<dyn Error + Sync + Send>> {

0 commit comments

Comments
 (0)