We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
return
1 parent 333285a commit 76e30b8Copy full SHA for 76e30b8
chaos-tproxy-proxy/src/uds_client.rs
@@ -28,7 +28,7 @@ impl UdsDataClient {
28
) -> anyhow::Result<T> {
29
tracing::debug!("try connect path : {:?}", &self.path);
30
let mut stream = UnixStream::connect(self.path.clone()).await?;
31
- return match stream.read_to_end(buf).await {
+ match stream.read_to_end(buf).await {
32
Ok(_) => {
33
tracing::debug!("Read data successfully.");
34
@@ -47,6 +47,6 @@ impl UdsDataClient {
47
tracing::debug!("Read data failed with err {:?}.", e);
48
Err(anyhow::anyhow!("{}", e))
49
}
50
- };
+ }
51
52
0 commit comments