distribution/registry/proxy/scheduler
Aaron Lehmann c56e8c2533 Simplify proxy scheduler
The proxy scheduler implemented its own timer state machine. It's
simpler and more efficient to leverage the Go runtime's timer heap by
using time.AfterFunc.

This commit adds a time.Timer to each scheduler entry, and starts and
stops those timers as necessary. Then the mainloop goroutine and its
associated logic are not needed.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-10-15 09:18:21 -07:00
..
scheduler.go Simplify proxy scheduler 2015-10-15 09:18:21 -07:00
scheduler_test.go Simplify proxy scheduler 2015-10-15 09:18:21 -07:00