@@ -456,17 +456,12 @@ func (w *Writer) openGRPC() error {
|
456 | 456 | // |
457 | 457 | // This is an experimental API and not intended for public use. |
458 | 458 | func (w *Writer) startResumableUpload() error { |
459 | | -var common *storagepb.CommonRequestParams |
460 | | -if w.o.userProject != "" { |
461 | | -common = &storagepb.CommonRequestParams{UserProject: w.o.userProject} |
462 | | - } |
463 | 459 | spec, err := w.writeObjectSpec() |
464 | 460 | if err != nil { |
465 | 461 | return err |
466 | 462 | } |
467 | 463 | upres, err := w.o.c.gc.StartResumableWrite(w.ctx, &storagepb.StartResumableWriteRequest{ |
468 | 464 | WriteObjectSpec: spec, |
469 | | -CommonRequestParams: common, |
470 | 465 | }) |
471 | 466 | |
472 | 467 | w.upid = upres.GetUploadId() |
|