Last active
May 17, 2016 13:13
-
-
Save gavrie/529fbeeabd2cd7b83c1aac07d6f47e63 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type basicRetrier struct { | |
// ... | |
virtual retrier | |
} | |
func NewBasic(timeout time.Duration, retries int) *basicRetrier { | |
br := &basicRetrier{ | |
timeout: timeout, | |
retries: retries, | |
} | |
br.virtual = br | |
return br | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment