Use the LogSink explicitly in securejoin tests

This commit is contained in:
Floris Bruynooghe
2021-12-16 18:57:00 +01:00
parent db58946312
commit 2e2d881e01
2 changed files with 46 additions and 10 deletions

View File

@@ -570,7 +570,7 @@ pub struct LogSink {
impl LogSink {
/// Creates a new [`LogSink`] and returns the attached event sink.
fn create() -> (Sender<Event>, Self) {
pub fn create() -> (Sender<Event>, Self) {
let (tx, rx) = channel::unbounded();
(tx, Self { events: rx })
}