summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2024-06-04 20:59:56 +0200
committerYuval Adam <_@yuv.al>2024-06-04 20:59:56 +0200
commitf7fe187c464525339c58996ec86b4faea4306789 (patch)
tree63e3c7dfbbd37d1dd7da84e8c58f70e2dbab101d /src/main.rs
parent355743d349d8f63a5d98246c0f0265812fbb2482 (diff)
Use unbounded mpsc channel
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 19442a6..4cee4d1 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -16,7 +16,7 @@ async fn main() {
let ans: Result<Channel, InquireError> =
Select::new("Select channel from list:", channels).prompt();
- let (tx, mut rx) = mpsc::channel(5);
+ let (tx, mut rx) = mpsc::unbounded_channel();
match ans {
Ok(ch) => {