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

Side by Side Diff: client/internal/logdog/butler/output/retry.go

Issue 1211053004: LogDog: Add Butler Output package. (Closed) Base URL: https://github.com/luci/luci-go@logdog-review-streamserver
Patch Set: Added some doc.go's. Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package output
6
7 import (
8 "time"
9
10 "github.com/luci/luci-go/common/retry"
11 "golang.org/x/net/context"
12 )
13
14 // DefaultRetryIterator returns a retry.Iterator configured with a default
15 // exponential backoff retry configuration.
16 func DefaultRetryIterator(context.Context) retry.Iterator {
17 // TODO: Tune backoff parameters.
estaab 2015/11/19 23:57:24 Should we allow any of these to be controlled by f
dnj 2015/11/20 01:55:12 I originally had this. Then I read a ToTT on flag
18 return &retry.ExponentialBackoff{
19 Limited: retry.Limited{
20 Delay: (500 * time.Millisecond),
21 Retries: 4,
22 MaxTotal: 20 * time.Second,
23 },
24 Multiplier: 2.0,
25 }
26 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698