This commit is contained in:
2015-10-24 03:07:47 +03:00
parent 3937c71a42
commit 0e1fbbe729
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ func (n *NumberPrinter) Startup() {
log.Printf("Oh, crap! There was a panic, take a look: %v", err)
})
n.LimitRate(3, 1*time.Second)
n.LimitRate(3, time.Second)
n.SystemProcess("Random Number Generator", n.generateNumbers)
}
+1 -1
View File
@@ -22,7 +22,7 @@ func (p *PriceConsumer) Startup() {
b.Subscribe("ProductPriceUpdates", func(u PriceUpdate) {
log.Printf("Price for %q is now $%.2f", u.Product, u.Amount)
})
p.LimitRate(5, 1*time.Second)
p.LimitRate(5, time.Second)
}
// Shutdown is empty because PriceConsumer requires no cleanup upon exiting.