summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcssivision <cssivision@gmail.com>2020-12-01 11:20:20 +0800
committerGitHub <noreply@github.com>2020-12-01 12:20:20 +0900
commita8e0f0a919663b210627c132d6af3e19a95d8037 (patch)
treeb18851ef95641ab2e2d1f632e2ce39cb1fcb1301
parent7ae8135b62057be6b1691f04b27eabe285b05efd (diff)
example: add back udp-codec example (#3205)
-rw-r--r--examples/udp-codec.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/examples/udp-codec.rs b/examples/udp-codec.rs
index f338bd84..8b64cbc3 100644
--- a/examples/udp-codec.rs
+++ b/examples/udp-codec.rs
@@ -1,8 +1,3 @@
-fn main() {}
-
-// Disabled while future of UdpFramed is decided on.
-// See https://github.com/tokio-rs/tokio/issues/2830
-/*
//! This example leverages `BytesCodec` to create a UDP client and server which
//! speak a custom protocol.
//!
@@ -83,4 +78,3 @@ async fn pong(socket: &mut UdpFramed<BytesCodec>) -> Result<(), io::Error> {
Ok(())
}
-*/