Impl `Sync` and `Send` for `TestStore`
authorElias Rohrer <dev@tnull.de>
Wed, 7 Feb 2024 11:54:21 +0000 (12:54 +0100)
committerElias Rohrer <dev@tnull.de>
Wed, 7 Feb 2024 11:56:06 +0000 (12:56 +0100)
lightning/src/util/test_utils.rs

index 5346f8ec306a6e0e31080993fc4473c86570523f..63106b9121d5c482639c936776140deedc876282 100644 (file)
@@ -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)>>>,