Skip to content

Commit 65a17e6

Browse files
committed
Make sure the lock released after remove
Signed-off-by: Xuanwo <github@xuanwo.io>
1 parent 3151a37 commit 65a17e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/base/src/base/singleton_instance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ impl GlobalInstance {
129129
/// Should only be used in testing code.
130130
#[cfg(debug_assertions)]
131131
pub fn drop_testing(thread_name: &str) {
132-
LOCAL.wait().write().remove(thread_name);
132+
let _ = { LOCAL.wait().write().remove(thread_name) };
133133
}
134134

135135
/// Get data from global data registry.

0 commit comments

Comments
 (0)