Skip to content

Commit 43b84cd

Browse files
fix: fix webevent and nodeeven
1 parent dc28d2c commit 43b84cd

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/types.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -387,15 +387,16 @@ pub enum WebEvent {
387387
},
388388
FileRequested {
389389
notification_from: NodeId,
390+
from: NodeId,
390391
uuid: String,
391-
}, // requester_id, file_id
392+
}, // server_id, requester_id, file_id
392393
FileServed {
393394
notification_from: NodeId,
394395
file: String,
395396
}, // server_id, file_id
396397
FilesListQueried {
397398
notification_from: NodeId,
398-
to: NodeId,
399+
from: NodeId,
399400
}, // requester_id, server_id
400401
BadUuid {
401402
notification_from: NodeId,
@@ -419,8 +420,8 @@ pub enum NodeEvent {
419420
}, // from, to
420421
ServerTypeQueried {
421422
notification_from: NodeId,
422-
to: NodeId,
423-
}, // requester_id, server_id
423+
from: NodeId,
424+
}, // server_id, requester_id
424425
}
425426

426427
#[derive(Debug, Clone)]

0 commit comments

Comments
 (0)