Skip to content

Commit f676b96

Browse files
authored
Remove 10-second timeout from RA's override loading code (#8477)
Fixes #8475
1 parent a1cf84f commit f676b96

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ra/ra.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ type RegistrationAuthorityImpl struct {
8585
maxContactsPerReg int
8686
limiter *ratelimits.Limiter
8787
txnBuilder *ratelimits.TransactionBuilder
88-
started time.Time
8988
finalizeTimeout time.Duration
9089
drainWG sync.WaitGroup
9190

@@ -111,7 +110,7 @@ var _ rapb.RegistrationAuthorityServer = (*RegistrationAuthorityImpl)(nil)
111110
// Health implements our grpc.checker interface. This method will be called
112111
// periodically to set the gRPC service's healthpb.Health.Check() status.
113112
func (ra *RegistrationAuthorityImpl) Health(ctx context.Context) error {
114-
if ra.txnBuilder.Ready() || time.Since(ra.started) > time.Second*10 {
113+
if ra.txnBuilder.Ready() {
115114
return nil
116115
}
117116
return errors.New("waiting for overrides")
@@ -235,7 +234,6 @@ func NewRegistrationAuthorityImpl(
235234
keyPolicy: keyPolicy,
236235
limiter: limiter,
237236
txnBuilder: txnBuilder,
238-
started: clk.Now(),
239237
publisher: pubc,
240238
finalizeTimeout: finalizeTimeout,
241239
ctpolicy: ctp,

0 commit comments

Comments
 (0)