Skip to content

Commit fb4b1c7

Browse files
winters.zceryugey
authored andcommitted
avoid too much error logs for non-fatal errors in data-path
Signed-off-by: winters.zc <winters.zc@antfin.com>
1 parent 2e522ba commit fb4b1c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/server/sync_io.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ impl<F: FileSystem + Sync> Server<F> {
411411
.map_err(Error::EncodeMessage)?;
412412
Ok(out.len as usize)
413413
}
414-
Err(e) => ctx.reply_error_explicit(e),
414+
Err(e) => ctx.reply_error(e),
415415
}
416416
}
417417

@@ -460,7 +460,7 @@ impl<F: FileSystem + Sync> Server<F> {
460460

461461
ctx.reply_ok(Some(out), None)
462462
}
463-
Err(e) => ctx.reply_error_explicit(e),
463+
Err(e) => ctx.reply_error(e),
464464
}
465465
}
466466

0 commit comments

Comments
 (0)