func init() { clock := util.RealClock{} sq := &SubmitQueue{ clock: clock, lastMergeTime: clock.Now(), lastE2EStable: true, prStatus: map[string]submitStatus{}, lastPRStatus: map[string]submitStatus{}, githubE2EQueue: map[int]*github.MungeObject{}, } RegisterMungerOrDie(sq) RegisterStaleComments(sq) }
func init() { clock := util.RealClock{} sq := &SubmitQueue{ clock: clock, lastMergeTime: clock.Now(), lastE2EStable: true, prStatus: map[string]submitStatus{}, lastPRStatus: map[string]submitStatus{}, githubE2EQueue: map[int]*github.MungeObject{}, } RegisterMungerOrDie(sq) registerShouldDeleteCommentFunc(sq.isStaleWhitelistComment) registerShouldDeleteCommentFunc(sq.isStaleSafeToMergeComment) }