Add http retries in executor client with go-retryablehttp (#2414)
* Add http retries in executor client with go-retryablehttp * Capture service record error Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
@@ -733,7 +733,7 @@ func (fh functionHandler) getServiceEntry(ctx context.Context) (svcURL *url.URL,
|
||||
|
||||
record, ok := recordObj.(svcEntryRecord)
|
||||
if !ok {
|
||||
return nil, false, fmt.Errorf("received unknown service record type")
|
||||
return nil, false, fmt.Errorf("unexpected type of recordObj %T: %w", recordObj, err)
|
||||
}
|
||||
return record.svcURL, record.cacheHit, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user