Use more idiomatic <int> * <const> for intervals

This commit is contained in:
Mark McGranaghan
2018-02-09 14:14:25 -08:00
parent 1d272218fd
commit 01a5f6de68
15 changed files with 37 additions and 37 deletions

View File

@@ -17,11 +17,11 @@ func main() {
// of time, to simulate e.g. blocking RPC operations
// executing in concurrent goroutines.
go func() {
time.Sleep(time.Second * 1)
time.Sleep(1 * time.Second)
c1 <- "one"
}()
go func() {
time.Sleep(time.Second * 2)
time.Sleep(2 * time.Second)
c2 <- "two"
}()

View File

@@ -1,2 +1,2 @@
72503557ab54ef765eeba153fe8a3446541dfc5f
Vco7d8Lmhn
8d743edffd7de6bf7bccdf4437f45672b6adc75e
ZdSOPe1Gj13