Skip to content

Commit 81fe5f7

Browse files
authored
Merge pull request #7 from w3f/async-mutex
Use async mutex instead of std mutex
2 parents 5c55d38 + d9af765 commit 81fe5f7

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

Cargo.lock

+5-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1
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

+1-1
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

+1-1
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

+2-1
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)