Adjust global log limit to 1ms

This commit is contained in:
Daniel Smith 2017-01-26 12:54:25 -08:00
parent b03b5de5af
commit 16b7bee56d

View File

@ -87,7 +87,10 @@ var ErrorHandlers = []func(error){
logError,
(&rudimentaryErrorBackoff{
lastErrorTime: time.Now(),
minPeriod: 500 * time.Millisecond,
// 1ms was the number folks were able to stomach as a global rate limit.
// If you need to log errors more than 1000 times a second you
// should probably consider fixing your code instead. :)
minPeriod: time.Millisecond,
}).OnError,
}