Test IntervalRetrier

This commit is contained in:
Malte Poll 2022-06-29 14:28:37 +02:00 committed by Paul Meyer
parent f79674cbb8
commit 3280ed200c
3 changed files with 142 additions and 9 deletions

View file

@ -142,8 +142,8 @@ func initCall(ctx context.Context, dialer grpcDialer, ip string, req *initproto.
endpoint: net.JoinHostPort(ip, strconv.Itoa(constants.CoordinatorPort)),
req: req,
}
retryer := retry.NewIntervalRetryer(doer, 30*time.Second)
if err := retryer.Do(ctx); err != nil {
retrier := retry.NewIntervalRetrier(doer, 30*time.Second)
if err := retrier.Do(ctx); err != nil {
return nil, err
}
return doer.resp, nil