summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-10-28 22:46:47 +0100
committersalmonik <salmonik@tuta.io>2026-10-28 22:46:47 +0100
commit47d6c82a4943b1e804d062780b8e05f1e42f27b0 (patch)
tree11d0d557025118c7deb021eb9ad425fcc8b1e918 /src
parentv0.3.0: add server core, bcrypt migration and plays audit (diff)
downloadzagan-bet-47d6c82a4943b1e804d062780b8e05f1e42f27b0.tar.gz
zagan-bet-47d6c82a4943b1e804d062780b8e05f1e42f27b0.zip
v0.3.1: clean up dependencies, stale tests and document verification
Diffstat (limited to '')
-rw-r--r--src/bin/client/connection.rs6
-rw-r--r--src/bin/client/tls.rs5
2 files changed, 0 insertions, 11 deletions
diff --git a/src/bin/client/connection.rs b/src/bin/client/connection.rs
index 49695dd..6459de5 100644
--- a/src/bin/client/connection.rs
+++ b/src/bin/client/connection.rs
@@ -131,12 +131,6 @@ impl TlsStream {
131 ) -> std::io::Result<()> { 131 ) -> std::io::Result<()> {
132 self.inner.set_read_timeout(duration) 132 self.inner.set_read_timeout(duration)
133 } 133 }
134
135 pub fn try_clone(&self) -> std::io::Result<TlsStream> {
136 Ok(TlsStream {
137 inner: self.inner.try_clone()?,
138 })
139 }
140} 134}
141 135
142impl Read for TlsStream { 136impl Read for TlsStream {
diff --git a/src/bin/client/tls.rs b/src/bin/client/tls.rs
index b118f63..8c052f7 100644
--- a/src/bin/client/tls.rs
+++ b/src/bin/client/tls.rs
@@ -204,11 +204,6 @@ impl TlsStream {
204 ) -> std::io::Result<()> { 204 ) -> std::io::Result<()> {
205 self.session.lock().sock.set_read_timeout(duration) 205 self.session.lock().sock.set_read_timeout(duration)
206 } 206 }
207
208 /// Clones share the same underlying TLS session.
209 pub fn try_clone(&self) -> std::io::Result<TlsStream> {
210 Ok(self.clone())
211 }
212} 207}
213 208
214impl Read for TlsStream { 209impl Read for TlsStream {