Skip to content

Commit 4cab9cb

Browse files
committed
Store EntropySource in DefaultRouter instead of passing it
...as an arg to `Router`. Passing an `EntropySource` around all the time is a bit strange as the `Router` may or may not actually use it, and the `DefaultRouter` can just as easily store it.
1 parent d41d87c commit 4cab9cb

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lightning/src/onion_message/functional_tests.rs

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ use core::ops::Deref;
3434

3535
use crate::prelude::*;
3636

37+
use core::ops::Deref;
38+
3739
struct MessengerNode {
3840
node_id: PublicKey,
3941
privkey: SecretKey,

lightning/src/util/test_utils.rs

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ use crate::io;
6565
use crate::prelude::*;
6666
use core::cell::RefCell;
6767
use core::time::Duration;
68+
use core::ops::Deref;
6869
use crate::sync::{Mutex, Arc};
6970
use core::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
7071
use core::mem;

0 commit comments

Comments
 (0)