refactor: move postgres to pg package (#1781)

This commit is contained in:
Kevin Wan
2022-04-13 12:46:09 +08:00
committed by GitHub
parent 50de01fb49
commit ba8ac974aa
4 changed files with 31 additions and 13 deletions

View File

@@ -71,8 +71,8 @@ func NewTimingWheel(interval time.Duration, numSlots int, execute Execute) (*Tim
return newTimingWheelWithClock(interval, numSlots, execute, timex.NewTicker(interval))
}
func newTimingWheelWithClock(interval time.Duration, numSlots int, execute Execute, ticker timex.Ticker) (
*TimingWheel, error) {
func newTimingWheelWithClock(interval time.Duration, numSlots int, execute Execute,
ticker timex.Ticker) (*TimingWheel, error) {
tw := &TimingWheel{
interval: interval,
ticker: ticker,