Skip to content

Commit

Permalink
feat: change parking lot mutex to std mutex (#315)
Browse files Browse the repository at this point in the history
* feat: change parking lot mutex to std mutex

Signed-off-by: Keming <kemingy94@gmail.com>

* fix: hold one lock at a time to avoid the deadlock in nested function (#316)

Signed-off-by: Keming <kemingy94@gmail.com>

---------

Signed-off-by: Keming <kemingy94@gmail.com>
  • Loading branch information
kemingy authored Mar 20, 2023
1 parent 0d51484 commit fc1fac3
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 87 deletions.
141 changes: 74 additions & 67 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["local-time", "json"] }
tokio = { version = "1", features = ["rt", "rt-multi-thread", "time", "macros", "sync", "signal", "io-util"] }
derive_more = { version = "0.99", features = ["display", "error"] }
# MPMS that only one consumer sees each message & async
async-channel = { version = "1" }
parking_lot = "0.12"
once_cell = { version = "1", features = ["parking_lot"] }
once_cell = "1.17"
prometheus = "0.13"
argh = "0.1"
Loading

0 comments on commit fc1fac3

Please sign in to comment.