Skip to content

Commit f94db9c

Browse files
committed
fix: remove uneeded postgres-types crate
1 parent 9f60573 commit f94db9c

File tree

3 files changed

+2
-17
lines changed

3 files changed

+2
-17
lines changed

Cargo.lock

Lines changed: 0 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sentry/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ regex = "1"
2323
redis = { version = "0.14", features = ["tokio-rt-core"] }
2424
bb8 = { git = "https://github.com/khuey/bb8" }
2525
bb8-postgres = { git = "https://github.com/khuey/bb8", features = ["with-chrono-0_4", "with-serde_json-1"] }
26-
postgres-types = { version = "0.1.0", features = ["derive"] }
2726

2827
# Migrations
2928
migrant_lib = { version = "0.27", features = ["d-postgres"] }

sentry/src/db/event_aggregate.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
use crate::db::DbPool;
22
use bb8::RunError;
33
use bb8_postgres::tokio_postgres::binary_copy::BinaryCopyInWriter;
4-
use bb8_postgres::tokio_postgres::types::Type;
4+
use bb8_postgres::tokio_postgres::types::{Type, ToSql};
55
use bb8_postgres::tokio_postgres::Error;
66
use chrono::{DateTime, Utc};
77
use futures::pin_mut;
8-
use postgres_types::{FromSql, ToSql};
98
use primitives::sentry::EventAggregate;
109
use primitives::BigNum;
1110
use primitives::{ChannelId, ValidatorId};
@@ -88,7 +87,7 @@ pub async fn list_event_aggregates(
8887
Ok(event_aggregates)
8988
}
9089

91-
#[derive(Debug, ToSql, FromSql)]
90+
#[derive(Debug)]
9291
struct EventData {
9392
id: String,
9493
event_type: String,

0 commit comments

Comments
 (0)