update vendor & module

This commit is contained in:
astaxie
2018-11-28 16:05:15 +08:00
parent 6282747f6d
commit 10729a1fc5
569 changed files with 70 additions and 340522 deletions

View File

@@ -128,7 +128,7 @@ func (dr *domainRenewal) do(ctx context.Context) (time.Duration, error) {
}
func (dr *domainRenewal) next(expiry time.Time) time.Duration {
d := expiry.Sub(dr.m.now()) - dr.m.renewBefore()
d := expiry.Sub(timeNow()) - dr.m.renewBefore()
// add a bit of randomness to renew deadline
n := pseudoRand.int63n(int64(renewJitter))
d -= time.Duration(n)