Address code review

This commit is contained in:
Sergey Dudoladov
2019-01-08 11:17:00 +01:00
parent b20a484e4e
commit b50587cc2c
5 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -17,10 +17,10 @@ type Ticker struct {
ticker *time.Ticker
}
// Stop returns ticker.Stop
// Stop is a convenience wrapper around ticker.Stop
func (t *Ticker) Stop() { t.ticker.Stop() }
// Tick returns ticker.C
// Tick is a convenience wrapper around ticker.C
func (t *Ticker) Tick() { <-t.ticker.C }
// Retry is a wrapper around RetryWorker that provides a real RetryTicker