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

Unified Diff: luci_config/server/cfgclient/backend/erroring/erroring.go

Issue 2801463002: Milo: Use custom config caching layer (Closed)
Patch Set: Review: Remove double logging Created 3 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 | « luci_config/server/cfgclient/backend/client/client.go ('k') | luci_config/server/cfgclient/config_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: luci_config/server/cfgclient/backend/erroring/erroring.go
diff --git a/luci_config/server/cfgclient/backend/erroring/erroring.go b/luci_config/server/cfgclient/backend/erroring/erroring.go
index cbd8ef89d124c27dcb4d2355b1708974cc969856..64a1079eed13e35fb82f8958bf0043f593a4c778 100644
--- a/luci_config/server/cfgclient/backend/erroring/erroring.go
+++ b/luci_config/server/cfgclient/backend/erroring/erroring.go
@@ -9,8 +9,11 @@
package erroring
import (
+ "errors"
"net/url"
+ "github.com/luci/luci-go/common/config"
+ "github.com/luci/luci-go/common/config/impl/memory"
"github.com/luci/luci-go/luci_config/server/cfgclient/backend"
"golang.org/x/net/context"
@@ -49,3 +52,10 @@ func (e erroringImpl) GetAll(c context.Context, t backend.GetAllTarget, path str
func (e erroringImpl) ConfigSetURL(c context.Context, configSet string, p backend.Params) (url.URL, error) {
return url.URL{}, e.err
}
+
+func (e erroringImpl) GetConfigInterface(c context.Context, a backend.Authority) config.Interface {
+ emptySet := map[string]memory.ConfigSet{}
+ i := memory.New(emptySet)
+ memory.SetError(i, errors.New("error"))
+ return i
+}
« no previous file with comments | « luci_config/server/cfgclient/backend/client/client.go ('k') | luci_config/server/cfgclient/config_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698