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

Unified Diff: logdog/appengine/coordinator/hierarchy/project.go

Issue 2626433004: Move "common/config" common types into cfgtypes. (Closed)
Patch Set: 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 | « logdog/appengine/coordinator/hierarchy/hierarchy_test.go ('k') | logdog/appengine/coordinator/project.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: logdog/appengine/coordinator/hierarchy/project.go
diff --git a/logdog/appengine/coordinator/hierarchy/project.go b/logdog/appengine/coordinator/hierarchy/project.go
index 0246aa813636c5e4256673aa7bda124c549286d2..3d037d934a76210cd89e9f9854e320098d4bac50 100644
--- a/logdog/appengine/coordinator/hierarchy/project.go
+++ b/logdog/appengine/coordinator/hierarchy/project.go
@@ -7,10 +7,10 @@ package hierarchy
import (
"sort"
- "github.com/luci/luci-go/common/config"
log "github.com/luci/luci-go/common/logging"
"github.com/luci/luci-go/grpc/grpcutil"
"github.com/luci/luci-go/logdog/appengine/coordinator"
+ "github.com/luci/luci-go/luci_config/common/cfgtypes"
"golang.org/x/net/context"
)
@@ -36,7 +36,7 @@ func getProjects(c context.Context, r *Request) (*List, error) {
}
sort.Sort(projects)
- next := config.ProjectName(r.Next)
+ next := cfgtypes.ProjectName(r.Next)
skip := r.Skip
for _, proj := range projects {
// Implement "Next" cursor. If set, don't do anything until we've seen it.
@@ -67,8 +67,8 @@ func getProjects(c context.Context, r *Request) (*List, error) {
return &l, nil
}
-// projectNameSlice is a sortable slice of config.ProjectName.
-type projectNameSlice []config.ProjectName
+// projectNameSlice is a sortable slice of cfgtypes.ProjectName.
+type projectNameSlice []cfgtypes.ProjectName
func (s projectNameSlice) Len() int { return len(s) }
func (s projectNameSlice) Less(i, j int) bool { return s[i] < s[j] }
« no previous file with comments | « logdog/appengine/coordinator/hierarchy/hierarchy_test.go ('k') | logdog/appengine/coordinator/project.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698