Skip to content

Commit

Permalink
fix: Resolve move issue with request_sender in freenet_api coroutine
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Dec 25, 2024
1 parent 59e9f95 commit d9ed2fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/src/components/app/freenet_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ impl FreenetApiSynchronizer {
let sender_for_struct = request_sender.clone();

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

let websocket_connection = match web_sys::WebSocket::new(WEBSOCKET_URL) {
Expand Down

0 comments on commit d9ed2fd

Please sign in to comment.