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

Unified Diff: logdog/server/collector/collector.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/server/cmd/logdog_archivist/main.go ('k') | logdog/server/collector/collector_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: logdog/server/collector/collector.go
diff --git a/logdog/server/collector/collector.go b/logdog/server/collector/collector.go
index 2c1a3dc1fb86e4d066afcb6bb54c4179b824a7a0..0e46fbe8e18198353317ca18a18a31d4b00a9ed6 100644
--- a/logdog/server/collector/collector.go
+++ b/logdog/server/collector/collector.go
@@ -10,7 +10,6 @@ import (
"github.com/golang/protobuf/proto"
"github.com/luci/luci-go/common/clock"
- "github.com/luci/luci-go/common/config"
"github.com/luci/luci-go/common/errors"
log "github.com/luci/luci-go/common/logging"
"github.com/luci/luci-go/common/sync/parallel"
@@ -23,6 +22,7 @@ import (
"github.com/luci/luci-go/logdog/common/storage"
"github.com/luci/luci-go/logdog/common/types"
"github.com/luci/luci-go/logdog/server/collector/coordinator"
+ "github.com/luci/luci-go/luci_config/common/cfgtypes"
"golang.org/x/net/context"
)
@@ -162,7 +162,7 @@ func (c *Collector) Process(ctx context.Context, msg []byte) error {
b: pr.Bundle,
}
- lw.project = config.ProjectName(lw.b.Project)
+ lw.project = cfgtypes.ProjectName(lw.b.Project)
if err := lw.project.Validate(); err != nil {
log.Fields{
log.ErrorKey: err,
@@ -220,7 +220,7 @@ type bundleHandler struct {
b *logpb.ButlerLogBundle
// project is the validated project name.
- project config.ProjectName
+ project cfgtypes.ProjectName
}
type bundleEntryHandler struct {
« no previous file with comments | « logdog/server/cmd/logdog_archivist/main.go ('k') | logdog/server/collector/collector_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698