refactor(tvix/store/blobsvc): drop Result<_,_> around open_write
We never returned Err here anyways, and we can still return an error during the first (or subsequent) write(s). Change-Id: I4b4cd3d35f6ea008e9ffe2f7b71bfc9187309e2f Reviewed-on: https://cl.tvl.fyi/c/depot/+/8750 Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
parent
b49f7cfec6
commit
64a4f6185c
7 changed files with 15 additions and 19 deletions
|
|
@ -161,10 +161,7 @@ impl super::blob_service_server::BlobService for GRPCBlobServiceWrapper {
|
|||
let data_reader = tokio_util::io::StreamReader::new(data_stream);
|
||||
|
||||
// prepare a writer, which we'll use in the blocking task below.
|
||||
let mut writer = self
|
||||
.blob_service
|
||||
.open_write()
|
||||
.map_err(|e| Status::internal(format!("unable to open for write: {}", e)))?;
|
||||
let mut writer = self.blob_service.open_write();
|
||||
|
||||
let result = task::spawn_blocking(move || -> Result<super::PutBlobResponse, Status> {
|
||||
// construct a sync reader to the data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue