You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Send events to a node, such as broadcasting a transaction.
24
24
pubrequester:Requester,
25
-
/// Receive log messages from a node.
26
-
publog_rx: mpsc::Receiver<Log>,
25
+
/// Receive log/debug messages from a node.
26
+
publog_rx: mpsc::Receiver<String>,
27
+
/// Receive informational messages from the node.
28
+
pubinfo_rx: mpsc::Receiver<Info>,
27
29
/// Receive warning messages from a node.
28
30
pubwarn_rx: mpsc::UnboundedReceiver<Warning>,
29
31
/// Receive [`Event`] from a node to act on.
@@ -32,14 +34,16 @@ pub struct Client {
32
34
33
35
implClient{
34
36
pub(crate)fnnew(
35
-
log_rx: mpsc::Receiver<Log>,
37
+
log_rx: mpsc::Receiver<String>,
38
+
info_rx: mpsc::Receiver<Info>,
36
39
warn_rx: mpsc::UnboundedReceiver<Warning>,
37
40
event_rx: mpsc::UnboundedReceiver<Event>,
38
41
ntx:Sender<ClientMessage>,
39
42
) -> Self{
40
43
Self{
41
44
requester:Requester::new(ntx),
42
45
log_rx,
46
+
info_rx,
43
47
warn_rx,
44
48
event_rx,
45
49
}
@@ -354,25 +358,23 @@ mod tests {
354
358
#[tokio::test]
355
359
asyncfntest_client_works(){
356
360
let transaction:Transaction = deserialize(&hex::decode("0200000001aad73931018bd25f84ae400b68848be09db706eac2ac18298babee71ab656f8b0000000048473044022058f6fc7c6a33e1b31548d481c826c015bd30135aad42cd67790dab66d2ad243b02204a1ced2604c6735b6393e5b41691dd78b00f0c5942fb9f751856faa938157dba01feffffff0280f0fa020000000017a9140fb9463421696b82c833af241c78c17ddbde493487d0f20a270100000017a91429ca74f8a08f81999428185c97b5d852e4063f618765000000").unwrap()).unwrap();
0 commit comments