Transfer publication sources one at a time
This commit is contained in:
@@ -189,7 +189,9 @@ func (publishStage) Run(ctx context.Context, env *Env, m *manifest.Manifest) (*S
|
||||
// Durability boundary: transfer every declared immutable object, write the
|
||||
// immutable commit, perform pre-pointer checks, then write the sole mutable
|
||||
// current pointer exactly once.
|
||||
uploadedDeclarations, err := uploadPublishTransfers(ctx, env.ObjectStore, uploader, transfers)
|
||||
uploadedDeclarations, err := uploadPublishTransfers(ctx, env.ObjectStore, uploader, transfers, func(root, relative string) (publishSource, error) {
|
||||
return openPublishSourceUnderRoot(root, relative)
|
||||
})
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("publish: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user