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

Unified Diff: logdog/server/cmd/logdog_collector/main.go

Issue 2951393002: [errors] de-specialize Transient in favor of Tags. (Closed)
Patch Set: copyright Created 3 years, 6 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
Index: logdog/server/cmd/logdog_collector/main.go
diff --git a/logdog/server/cmd/logdog_collector/main.go b/logdog/server/cmd/logdog_collector/main.go
index 078a9de979c742dc35bd487bb7bfa4042f657f2e..1a67d151190a41f05bde78b60d7aae7ed2cc9e11 100644
--- a/logdog/server/cmd/logdog_collector/main.go
+++ b/logdog/server/cmd/logdog_collector/main.go
@@ -191,7 +191,7 @@ func (a *application) processMessage(c context.Context, coll *collector.Collecto
tsTaskProcessingTime.Add(c, duration.Seconds()*1000)
switch {
- case errors.IsTransient(err):
+ case retry.Tag.In(err):
// Do not consume
log.Fields{
log.ErrorKey: err,

Powered by Google App Engine
This is Rietveld 408576698