Improve table resizing, add terminal workaround, and expose last check.
This commit is contained in:
1 parent
a19e6fa711
commit
f2ea1297e8
6 files changed
+43
-5
No files matched your search
@@ -215,6 +215,14 @@ func (l *Limiter) URLReady(pageURL string) time.Time {
|
||||
return l.urlReady(pageURL)
|
||||
}
|
||||
|
||||
// LastCheck is when the URL was last checked by any dibs process, or zero.
|
||||
func (l *Limiter) LastCheck(pageURL string) time.Time {
|
||||
l.mu.Lock()
|
||||
defer l.mu.Unlock()
|
||||
|
||||
return l.lastCheck(pageURL)
|
||||
}
|
||||
|
||||
// Jittered stretches or shrinks d randomly by up to ±20%, but never below
|
||||
// floor.
|
||||
func (l *Limiter) Jittered(d, floor time.Duration) time.Duration {
|
||||
|
||||
Reference in new issue
Block a user