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

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: Relocate butlerproto to common, document. 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.
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
« no previous file with comments | « client/internal/logdog/butler/output/pubsub/pubsubOutput_test.go ('k') | client/logdog/butlerproto/doc.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698