Skip to content

Commit

Permalink
fix(storage): remove field that no longer exists (#6061)
Browse files Browse the repository at this point in the history
  • Loading branch information
codyoss authored May 19, 2022
1 parent 1a21711 commit ee150cf
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions storage/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,17 +456,12 @@ func (w *Writer) openGRPC() error {
//
// This is an experimental API and not intended for public use.
func (w *Writer) startResumableUpload() error {
var common *storagepb.CommonRequestParams
if w.o.userProject != "" {
common = &storagepb.CommonRequestParams{UserProject: w.o.userProject}
}
spec, err := w.writeObjectSpec()
if err != nil {
return err
}
upres, err := w.o.c.gc.StartResumableWrite(w.ctx, &storagepb.StartResumableWriteRequest{
WriteObjectSpec: spec,
CommonRequestParams: common,
})

w.upid = upres.GetUploadId()
Expand Down

0 comments on commit ee150cf

Please sign in to comment.