Skip to content

Draft: tor-rpc-connect: Use Arc<> to avoid use of try_clone().

Nick Mathewson requested to merge nickm/arti:share_client_stream into main

Sadly, we can't just use 'Arc<>' directly, since even though &TcpStream implements Write, and Arc<TcpStream> can be cast to Arc<dyn Write>, we can't write to an immutable Arc<dyn Write>.

Resolves discussion at !2655 (comment 3139370)

I'm not sure that this is a great improvement; what do you think, @opara?

Merge request reports

Loading