From 9a6116f56a90365433701c480f2c40c4f54c1a27 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Wed, 4 Dec 2013 22:52:45 -0800 Subject: [PATCH] Implement flush for InternalStream --- lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib.rs b/lib.rs index 361cad86..5e2acfc7 100644 --- a/lib.rs +++ b/lib.rs @@ -314,6 +314,13 @@ impl Writer for InternalStream { Ssl(ref mut s) => s.write(buf) } } + + fn flush(&mut self) { + match *self { + Normal(ref mut s) => s.flush(), + Ssl(ref mut s) => s.flush() + } + } } struct InnerPostgresConnection {