Skip to content

Commit

Permalink
feat: Fix moved value and unused variable warnings in FreenetApiSynch…
Browse files Browse the repository at this point in the history
…ronizer
  • Loading branch information
sanity committed Dec 20, 2024
1 parent c7970e4 commit 455e24e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/src/components/app/freenet_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ impl FreenetApiSynchronizer {
/// Starts the Freenet API syncrhonizer.
pub fn start() -> Self {
let subscribed_contracts = HashSet::new();
let (request_sender, request_receiver) = futures::channel::mpsc::unbounded();
let (request_sender, _request_receiver) = futures::channel::mpsc::unbounded();

let sender = FreenetApiSender { request_sender };
let sender = FreenetApiSender { request_sender: request_sender.clone() };

// Start the sync coroutine
// Start the sync coroutine
use_coroutine(move |mut rx| {
async move {
*SYNC_STATUS.write() = SyncStatus::Connecting;
Expand Down

0 comments on commit 455e24e

Please sign in to comment.