refactor(tvix/nar-bridge): drop reader package
Make the import function usable on any reader. Change-Id: I84d2004cb73cdd7a11fe8efb0f2efb6335d5e6b0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9527 Reviewed-by: Connor Brewster <cbrewster@hey.com> Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de>
This commit is contained in:
parent
6e9a5dcd59
commit
b1ff1267be
6 changed files with 41 additions and 56 deletions
|
|
@ -16,7 +16,7 @@ import (
|
|||
const chunkSize = 1024 * 1024
|
||||
|
||||
// this produces a callback function that can be used as blobCb for the
|
||||
// reader.Import function call
|
||||
// importer.Import function call.
|
||||
func genBlobServiceWriteCb(ctx context.Context, blobServiceClient castorev1pb.BlobServiceClient) func(io.Reader) error {
|
||||
return func(blobReader io.Reader) error {
|
||||
// Ensure the blobReader is buffered to at least the chunk size.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue