Skip to content

Commit

Permalink
Update transfer code for new google deps
Browse files Browse the repository at this point in the history
  • Loading branch information
ajroetker committed Jun 16, 2021
1 parent a48c60d commit 475403f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions google/storeutils/transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (t *Transferer) List(project string, statuses ...Status) ([]*storagetransfe
}

for {
call := t.svc.List().Filter(string(body))
call := t.svc.List(string(body))
if token != "" {
call = call.PageToken(token)
}
Expand All @@ -85,7 +85,7 @@ func (t *Transferer) List(project string, statuses ...Status) ([]*storagetransfe

// GetJob returns the transferJob with the specified project and job ID
func (t *Transferer) GetJob(project, job string) (*storagetransfer.TransferJob, error) {
resp, err := t.svc.Get(job).ProjectId(project).Do()
resp, err := t.svc.Get(job, project).Do()
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 475403f

Please sign in to comment.