mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-06-07 14:42:53 -04:00
Add comment regarding processing in network behaviour
This commit is contained in:
parent
2c9fb7b1da
commit
e71bf7d8e9
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ impl NetworkBehaviourEventProcess<RequestResponseEvent<BobToAlice, AliceToBob>>
|
||||||
} => {
|
} => {
|
||||||
if let BobToAlice::Message0(msg) = request {
|
if let BobToAlice::Message0(msg) = request {
|
||||||
debug!("Received Message0");
|
debug!("Received Message0");
|
||||||
|
// TODO(Franck): Move this business logic out of the network behaviour.
|
||||||
let response = AliceToBob::Message0(self.state.next_message(&mut OsRng));
|
let response = AliceToBob::Message0(self.state.next_message(&mut OsRng));
|
||||||
|
|
||||||
self.rr.send_response(channel, response);
|
self.rr.send_response(channel, response);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue