Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Unified Diff: cipd/client/cipd/remote.go

Issue 2657873002: [cipd] use new pin types in common (Closed)
Patch Set: rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cipd/client/cipd/local/deployer_test.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cipd/client/cipd/remote.go
diff --git a/cipd/client/cipd/remote.go b/cipd/client/cipd/remote.go
index db899f9aa3f550399702f7821acfcfd8243615b7..e22136fcbeea53309b9cc9c9b13f12bb0ebc3825 100644
--- a/cipd/client/cipd/remote.go
+++ b/cipd/client/cipd/remote.go
@@ -649,7 +649,7 @@ func (r *remoteImpl) listPackages(ctx context.Context, path string, recursive, s
return nil, nil, fmt.Errorf("unexpected list packages status: %s", reply.Status)
}
-func (r *remoteImpl) searchInstances(ctx context.Context, tag, packageName string) ([]common.Pin, error) {
+func (r *remoteImpl) searchInstances(ctx context.Context, tag, packageName string) (common.PinSlice, error) {
endpoint, err := packageSearchInstancesEndpoint(tag, packageName)
if err != nil {
return nil, err
@@ -665,7 +665,7 @@ func (r *remoteImpl) searchInstances(ctx context.Context, tag, packageName strin
}
switch reply.Status {
case "SUCCESS":
- pins := make([]common.Pin, len(reply.Instances))
+ pins := make(common.PinSlice, len(reply.Instances))
for i, instance := range reply.Instances {
pins[i] = common.Pin{instance.PackageName, instance.InstanceID}
}
« no previous file with comments | « cipd/client/cipd/local/deployer_test.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698