mirror of
https://github.com/Cuprate/cuprate.git
synced 2025-01-03 17:39:50 +00:00
fix stem peer service
This commit is contained in:
parent
720b7afcd1
commit
92438dc7e1
1 changed files with 2 additions and 0 deletions
|
@ -53,6 +53,8 @@ impl Stream for OutboundPeerStream {
|
||||||
OutboundPeerStreamState::AwaitingPeer(fut) => {
|
OutboundPeerStreamState::AwaitingPeer(fut) => {
|
||||||
let res = ready!(fut.poll_unpin(cx));
|
let res = ready!(fut.poll_unpin(cx));
|
||||||
|
|
||||||
|
self.state = OutboundPeerStreamState::Standby;
|
||||||
|
|
||||||
return Poll::Ready(Some(res.map(|res| {
|
return Poll::Ready(Some(res.map(|res| {
|
||||||
let PeerSetResponse::StemPeer(stem_peer) = res else {
|
let PeerSetResponse::StemPeer(stem_peer) = res else {
|
||||||
unreachable!()
|
unreachable!()
|
||||||
|
|
Loading…
Reference in a new issue