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:
Sanket Sudake
2022-04-20 20:56:46 +05:30
committed by GitHub
parent 4bb7dcaf64
commit 24b185db89
4 changed files with 32 additions and 12 deletions
+1 -1
View File
@@ -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
}