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

Unified Diff: common/tsmon/context.go

Issue 1857643003: Revert of Migrate tsmon protos to proto3 (Closed) Base URL: git@github.com:luci/luci-go.git@master
Patch Set: Created 4 years, 8 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 | « appengine/tsmon/standardmetrics_test.go ('k') | common/tsmon/field/field.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/tsmon/context.go
diff --git a/common/tsmon/context.go b/common/tsmon/context.go
index 08fd4fbedadfda7bfa4194c736b13b3fb84f1e2c..55a1b50fd0a0712d7afeda1b30f918c21c62087c 100644
--- a/common/tsmon/context.go
+++ b/common/tsmon/context.go
@@ -7,6 +7,7 @@
import (
"sync"
+ "github.com/golang/protobuf/proto"
"golang.org/x/net/context"
"github.com/luci/luci-go/common/tsmon/monitor"
@@ -66,7 +67,7 @@
// WithDummyInMemory returns a new context holding a new State with a new in-
// memory store and a fake monitor.
func WithDummyInMemory(c context.Context) (context.Context, *monitor.Fake) {
- s := store.NewInMemory(&target.Task{})
+ s := store.NewInMemory(&target.Task{ServiceName: proto.String("")})
m := &monitor.Fake{}
return WithState(c, &State{
S: s,
« no previous file with comments | « appengine/tsmon/standardmetrics_test.go ('k') | common/tsmon/field/field.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698