Skip to content
This repository was archived by the owner on Mar 24, 2024. It is now read-only.

Commit 0c4ffc9

Browse files
committed
update dependencies
1 parent 11c1afa commit 0c4ffc9

File tree

14 files changed

+522
-599
lines changed

14 files changed

+522
-599
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ serde = { version = "1.0", features = ["derive"] }
4242
serde_json = { version = "1.0", optional = true }
4343
tinyvec = { version = "1.5", features = ["alloc"] }
4444
tracing = "0.1"
45-
tracing-opentelemetry = { version = "0.17", optional = true }
45+
tracing-opentelemetry = { version = "0.18", optional = true }
4646
tracing-subscriber = { version = "0.3", features = ["json"] }
4747

4848
[dependencies.config]
@@ -51,12 +51,12 @@ default-features = false
5151
features = ["toml"]
5252

5353
[dependencies.opentelemetry]
54-
version = "0.17"
54+
version = "0.18"
5555
features = ["rt-tokio"]
5656
optional = true
5757

5858
[dependencies.opentelemetry-jaeger]
59-
version = "0.16"
59+
version = "0.17"
6060
features = ["rt-tokio"]
6161
optional = true
6262

@@ -77,12 +77,12 @@ default-features = false
7777
features = ["model", "rustls_backend"]
7878

7979
[dependencies.sea-orm]
80-
version = "0.9"
80+
version = "0.10"
8181
default-features = false
8282
features = ["macros", "runtime-tokio-rustls"]
8383

8484
[dependencies.sea-orm-migration]
85-
version = "0.9"
85+
version = "0.10"
8686
features = ["runtime-tokio-rustls"]
8787

8888
[dependencies.tokio]

src/db/backup.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ async fn clean_backups(backup_dir: &Path) {
124124
if gap < Duration::days(1) - Duration::minutes(1) {
125125
debug!(
126126
"Deleting old restart backup from {}",
127-
time.date()
127+
time.date_naive()
128128
);
129129
results.push(fs::remove_file(path).await);
130130
} else {
@@ -135,7 +135,7 @@ async fn clean_backups(backup_dir: &Path) {
135135
if gap < Duration::weeks(1) - Duration::minutes(10) {
136136
debug!(
137137
"Deleting old daily backup from {}",
138-
time.date()
138+
time.date_naive()
139139
);
140140
results.push(fs::remove_file(path).await);
141141
} else {
@@ -146,15 +146,18 @@ async fn clean_backups(backup_dir: &Path) {
146146
if gap < Duration::days(30) - Duration::minutes(30) {
147147
debug!(
148148
"Deleting old weekly backup from {}",
149-
time.date()
149+
time.date_naive()
150150
);
151151
results.push(fs::remove_file(path).await);
152152
} else {
153153
last_time = time;
154154
monthly_found += 1;
155155
}
156156
} else if gap < Duration::days(364) {
157-
debug!("Deleting old monthly backup from {}", time.date());
157+
debug!(
158+
"Deleting old monthly backup from {}",
159+
time.date_naive()
160+
);
158161
results.push(fs::remove_file(path).await);
159162
} else {
160163
last_time = time;

src/db/block.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use futures_util::TryStreamExt;
88
use sea_orm::{
99
entity::prelude::{
1010
DeriveActiveModelBehavior, DeriveColumn, DeriveEntityModel,
11-
DerivePrimaryKey, DeriveRelation, EntityTrait, EnumIter, IdenStatic,
11+
DerivePrimaryKey, DeriveRelation, EntityTrait, EnumIter,
1212
PrimaryKeyTrait,
1313
},
1414
ColumnTrait, Condition, IntoActiveModel, QueryFilter, QuerySelect,

src/db/channel_keyword.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
use sea_orm::entity::prelude::{
55
DeriveActiveModelBehavior, DeriveEntityModel, DerivePrimaryKey,
6-
DeriveRelation, EntityTrait, EnumIter, IdenStatic, PrimaryKeyTrait,
6+
DeriveRelation, EntityTrait, EnumIter, PrimaryKeyTrait,
77
};
88

99
use super::DbInt;

src/db/guild_keyword.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
use sea_orm::entity::prelude::{
55
DeriveActiveModelBehavior, DeriveEntityModel, DerivePrimaryKey,
6-
DeriveRelation, EntityTrait, EnumIter, IdenStatic, PrimaryKeyTrait,
6+
DeriveRelation, EntityTrait, EnumIter, PrimaryKeyTrait,
77
};
88

99
use super::DbInt;

src/db/ignore.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use futures_util::TryStreamExt;
88
use sea_orm::{
99
entity::prelude::{
1010
DeriveActiveModelBehavior, DeriveColumn, DeriveEntityModel,
11-
DerivePrimaryKey, DeriveRelation, EntityTrait, EnumIter, IdenStatic,
11+
DerivePrimaryKey, DeriveRelation, EntityTrait, EnumIter,
1212
PrimaryKeyTrait,
1313
},
1414
ColumnTrait, Condition, IntoActiveModel, QueryFilter, QuerySelect,

src/db/keyword.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ use anyhow::{Context, Result};
77
use futures_util::TryStreamExt;
88
use sea_orm::{
99
sea_query::Expr, ColumnTrait, Condition, DeriveColumn, EntityTrait,
10-
EnumIter, IdenStatic, IntoActiveModel, QueryFilter, QuerySelect,
11-
QueryTrait,
10+
EnumIter, IntoActiveModel, QueryFilter, QuerySelect, QueryTrait,
1211
};
1312
use serenity::model::id::{ChannelId, GuildId, UserId};
1413
use tracing::info_span;

src/db/migration/m2023_01_08_000001_composite_notification_key.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl MigrationTrait for Migration {
6161
])
6262
.to_owned(),
6363
)
64-
.map_err(|e| DbErr::Query(e.to_string()))?
64+
.map_err(|e| DbErr::Migration(e.to_string()))?
6565
.to_owned(),
6666
)
6767
.await?;
@@ -125,7 +125,7 @@ impl MigrationTrait for Migration {
125125
])
126126
.to_owned(),
127127
)
128-
.map_err(|e| DbErr::Query(e.to_string()))?
128+
.map_err(|e| DbErr::Migration(e.to_string()))?
129129
.to_owned(),
130130
)
131131
.await?;

src/db/mute.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use futures_util::TryStreamExt;
88
use sea_orm::{
99
entity::prelude::{
1010
DeriveActiveModelBehavior, DeriveColumn, DeriveEntityModel,
11-
DerivePrimaryKey, DeriveRelation, EntityTrait, EnumIter, IdenStatic,
11+
DerivePrimaryKey, DeriveRelation, EntityTrait, EnumIter,
1212
PrimaryKeyTrait,
1313
},
1414
ColumnTrait, Condition, IntoActiveModel, QueryFilter, QuerySelect,

0 commit comments

Comments
 (0)