Skip to content

Commit 475403f

Browse files
committed
Update transfer code for new google deps
1 parent a48c60d commit 475403f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

google/storeutils/transfer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (t *Transferer) List(project string, statuses ...Status) ([]*storagetransfe
6161
}
6262

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

8686
// GetJob returns the transferJob with the specified project and job ID
8787
func (t *Transferer) GetJob(project, job string) (*storagetransfer.TransferJob, error) {
88-
resp, err := t.svc.Get(job).ProjectId(project).Do()
88+
resp, err := t.svc.Get(job, project).Do()
8989
if err != nil {
9090
return nil, err
9191
}

0 commit comments

Comments
 (0)