Skip to content

Commit

Permalink
Merge pull request #269 from BurtonQin/fix-double-lock
Browse files Browse the repository at this point in the history
samplecode: fix possible deadlock in db-server
  • Loading branch information
dingelish authored Oct 23, 2020
2 parents 98ca993 + e3230b9 commit d949967
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion samplecode/db-proxy/db-server/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ impl server {

fn db_get(&mut self, key: String) -> String {
let db = self.db_handler.clone();
let db_read = db.read();
let r = db.read().get(key.as_str());
match r {
Err(t) => return String::new(),
Expand Down

0 comments on commit d949967

Please sign in to comment.