projects
/
rust-lightning
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a85d5b1
)
Impl `Sync` and `Send` for `TestStore`
author
Elias Rohrer
<dev@tnull.de>
Wed, 7 Feb 2024 11:54:21 +0000
(12:54 +0100)
committer
Elias Rohrer
<dev@tnull.de>
Wed, 7 Feb 2024 11:56:06 +0000
(12:56 +0100)
lightning/src/util/test_utils.rs
patch
|
blob
|
history
diff --git
a/lightning/src/util/test_utils.rs
b/lightning/src/util/test_utils.rs
index 5346f8ec306a6e0e31080993fc4473c86570523f..63106b9121d5c482639c936776140deedc876282 100644
(file)
--- a/
lightning/src/util/test_utils.rs
+++ b/
lightning/src/util/test_utils.rs
@@
-632,6
+632,9
@@
impl KVStore for TestStore {
}
}
+unsafe impl Sync for TestStore {}
+unsafe impl Send for TestStore {}
+
pub struct TestBroadcaster {
pub txn_broadcasted: Mutex<Vec<Transaction>>,
pub blocks: Arc<Mutex<Vec<(Block, u32)>>>,