Skip to content

Commit d9af765

Browse files
committed
use async mutex instead of std mutex
1 parent 5c55d38 commit d9af765

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ structopt = "0.3.23"
3131
md5 = "0.7.0"
3232
mongodb = { version = "2.0.0-beta", features = ["bson-u2i"] }
3333
bson = "2.0.0-beta"
34+
tokio = "1.14.0"

charts/matrixbot-ack/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
description: Matrixbot Ack
22
name: matrixbot-ack
3-
version: v0.2.5
3+
version: v0.2.6
44
apiVersion: v2

charts/matrixbot-ack/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ environment: production
22

33
image:
44
repository: web3f/matrixbot-ack
5-
tag: v0.2.5
5+
tag: v0.2.6
66
pullPolicy: IfNotPresent
77

88
config:

src/processor.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ use crate::matrix::MatrixClient;
33
use crate::webhook::Alert;
44
use crate::{unix_time, AlertId, Result};
55
use actix::prelude::*;
6-
use std::sync::{Arc, Mutex};
6+
use tokio::sync::Mutex;
7+
use std::sync::Arc;
78
use std::time::Duration;
89

910
const CRON_JOB_INTERVAL: u64 = 5;

0 commit comments

Comments
 (0)