diff --git a/applications/tari_console_wallet/src/ui/state/wallet_event_monitor.rs b/applications/tari_console_wallet/src/ui/state/wallet_event_monitor.rs index 42938e7ba6c..32ea9c33f4e 100644 --- a/applications/tari_console_wallet/src/ui/state/wallet_event_monitor.rs +++ b/applications/tari_console_wallet/src/ui/state/wallet_event_monitor.rs @@ -266,7 +266,7 @@ impl WalletEventMonitor { ); self.trigger_contacts_refresh().await; } - ContactsLivenessEvent::NetworkSilence => {} + ContactsLivenessEvent::NetworkSilence => {}, } } Err(broadcast::error::RecvError::Lagged(n)) => { diff --git a/base_layer/wallet/src/wallet.rs b/base_layer/wallet/src/wallet.rs index 60ae3ed301c..d0230c5b136 100644 --- a/base_layer/wallet/src/wallet.rs +++ b/base_layer/wallet/src/wallet.rs @@ -209,10 +209,11 @@ where max_allowed_ping_failures: 0, // Peer with failed ping-pong will never be removed ..Default::default() }, - peer_message_subscription_factory, + peer_message_subscription_factory.clone(), )) .add_initializer(ContactsServiceInitializer::new( contacts_backend, + peer_message_subscription_factory, config.contacts_auto_ping_interval, config.contacts_online_ping_window, )) diff --git a/base_layer/wallet_ffi/src/callback_handler.rs b/base_layer/wallet_ffi/src/callback_handler.rs index 6c442e08057..4c30a1ab425 100644 --- a/base_layer/wallet_ffi/src/callback_handler.rs +++ b/base_layer/wallet_ffi/src/callback_handler.rs @@ -344,7 +344,7 @@ where TBackend: TransactionBackend + 'static ); self.trigger_contacts_refresh(data.deref().clone()); } - ContactsLivenessEvent::NetworkSilence => {} + ContactsLivenessEvent::NetworkSilence => {}, } } Err(broadcast::error::RecvError::Lagged(n)) => {