How to implement fire-and-forget pattern #3786
-
Some sub-protocols in my application require sending to concrete peers just a single message. Does libp2p-rust allow to send a message to some |
Beta Was this translation helpful? Give feedback.
Answered by
thomaseizinger
Apr 14, 2023
Replies: 1 comment 4 replies
-
If you use the |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
oskin1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you use the
Upgrade::V1Lazy
strategy, negotiating substreams is 0RTT. TheOneShotHandler
may be useful for your usecase: https://github.com/libp2p/rust-libp2p/blob/master/swarm/src/handler/one_shot.rs