-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Approach Revamp: Introducing ResponseInstruction.
1. Since usage of closure could have lead to circular referencing, a new approach is introduced here. 2. This commit introduce a new struct called ResponseInstruction. The job of this struct is to contain the following information: 1. The knowledge of whether to have a response to the message, 2. the response of the message itself, and 3. The other variable needed to forward this response (that is, reply_path, for now). 3. This struct will be used by OnionMessageHandler for doing proper response handling 4. In this commit this struct is used in handle_onion_message_response to appropriately queue the response of responding. Co-authored-by: Jeffrey Czyz <jkczyz@gmail.com>
- Loading branch information
Showing
6 changed files
with
68 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters