mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fixup! feat(cli): allow printing selected DDS messages to the console
This commit is contained in:
parent
9cd3ee0cd7
commit
57bb6d57dc
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
use std::{collections::{HashMap, HashSet}, mem, str::FromStr};
|
||||
|
||||
use anyhow::{bail, Result};
|
||||
use anyhow::{bail, Context, Result};
|
||||
use parking_lot::RwLock;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use tokio::{io::AsyncWriteExt, select, sync::mpsc, task::JoinHandle, time};
|
||||
|
|
@ -71,7 +71,7 @@ impl Client {
|
|||
let mut lines = Self::connect_listener(&kinds).await?;
|
||||
|
||||
loop {
|
||||
match lines.next_line().await? {
|
||||
match lines.next_line().await.context("Could not establish initial connection")? {
|
||||
Some(s) => {
|
||||
let kind = s.split(',').next();
|
||||
if matches!(kind, Some(kind) if kinds.contains(kind)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue