diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2016-11-11 13:50:53 -0800 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2016-11-11 13:50:53 -0800 |
| commit | 9041744a6004ea2ca30a04b81b1df28f8612adcd (patch) | |
| tree | a00e1d464082752ffc6654ba3cc2ef2171808996 | |
| parent | c2f9f251b216697d1d71e818c82b22fcd5b56893 (diff) | |
syz-gce: fix build
Storage API seems to have changed.
Switch to the new API.
| -rw-r--r-- | syz-gce/syz-gce.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/syz-gce/syz-gce.go b/syz-gce/syz-gce.go index 4d790ad05..17b0d4a04 100644 --- a/syz-gce/syz-gce.go +++ b/syz-gce/syz-gce.go @@ -276,10 +276,10 @@ func openFile(file string) (*storage.ObjectHandle, time.Time, error) { if !attrs.Deleted.IsZero() { return nil, time.Time{}, fmt.Errorf("file %v is deleted", file) } - f = f.WithConditions( - storage.IfGenerationMatch(attrs.Generation), - storage.IfMetaGenerationMatch(attrs.MetaGeneration), - ) + f = f.If(storage.Conditions{ + GenerationMatch: attrs.Generation, + MetagenerationMatch: attrs.MetaGeneration, + }) return f, attrs.Updated, nil } |
