Skip to content
Commit 3628998d authored by Robert Klotzner's avatar Robert Klotzner Committed by GitHub
Browse files

Add a send_request function to NetworkService (#8008)



* Add a `send_request` to `NetworkService`.

This function delivers responses via a provided sender and also allows
for sending requests to currently not connected peers.

* Document caveats of send_request better.

* Fix compilation in certain cases.

* Update docs + introduce IfDisconnected enum

for more readable function calls.

* Doc fix.

* Rename send_request to detached_request.

* Whitespace fix - arrrgh

* Update client/network/src/service.rs

spaces/tabs

Co-authored-by: default avatarPierre Krieger <[email protected]>

* Update client/network/src/request_responses.rs

Documentation fix

Co-authored-by: default avatarRoman Borschel <[email protected]>

* Update client/network/src/service.rs

Typo.

Co-authored-by: default avatarRoman Borschel <[email protected]>

* Update client/network/src/service.rs

Better docs.

Co-authored-by: default avatarRoman Borschel <[email protected]>

* Update client/network/src/service.rs

Typo.

Co-authored-by: default avatarRoman Borschel <[email protected]>

* Update client/network/src/service.rs

Doc improvements.

Co-authored-by: default avatarRoman Borschel <[email protected]>

* Remove error in logs on dialing a peer.

This is now valid behaviour.

* Rename detached_request to start_request.

As suggested by @romanb.

* Fix merged master.

* Fix too long lines.

Co-authored-by: default avatarPierre Krieger <[email protected]>
Co-authored-by: default avatarRoman Borschel <[email protected]>
parent 73386a42
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment