Skip to content

Commit 316b8b6

Browse files
committed
chore: use endpointCache from EndpointDiscoveryClientResolvedConfig
1 parent 0a2b5e5 commit 316b8b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/middleware-endpoint-discovery/src/endpointDiscoveryMiddleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const endpointDiscoveryMiddleware = (
6464
const { request } = args;
6565
const cacheKey = await getCacheKey(commandName, config, { identifiers });
6666
if (cacheKey && HttpRequest.isInstance(request)) {
67-
const endpoint = client?.config.endpointCache.getEndpoint(cacheKey);
67+
const endpoint = config.endpointCache.getEndpoint(cacheKey);
6868
if (endpoint) {
6969
request.hostname = endpoint;
7070
}

0 commit comments

Comments
 (0)