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

Unified Diff: common/retry/wrap.go

Issue 2951393002: [errors] de-specialize Transient in favor of Tags. (Closed)
Patch Set: more refactor 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: common/retry/wrap.go
diff --git a/common/retry/wrap.go b/common/retry/wrap.go
deleted file mode 100644
index 7056199fb777ccf805e269d6b1af830e8dfaab7e..0000000000000000000000000000000000000000
--- a/common/retry/wrap.go
+++ /dev/null
@@ -1,17 +0,0 @@
-// Copyright 2015 The LUCI Authors. All rights reserved.
-// Use of this source code is governed under the Apache License, Version 2.0
-// that can be found in the LICENSE file.
-
-package retry
-
-// wrap wraps a Factory, applying a modification function to each Iterator
-// that it produces.
-func wrap(g Factory, mod func(it Iterator) Iterator) Factory {
- return func() Iterator {
- next := g()
- if next == nil {
- return nil
- }
- return mod(next)
- }
-}

Powered by Google App Engine
This is Rietveld 408576698