Skip to content

Commit 94478c6

Browse files
committed
fix: use string as key for LRUCache
1 parent 4da57a1 commit 94478c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ export const getCacheKey = async (
1717
...(region && { region }),
1818
...(accessKeyId && { accessKeyId }),
1919
...(identifiers && { identifiers }),
20-
};
20+
}.toString();
2121
};

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface PreviouslyResolved {}
77

88
export interface EndpointDiscoveryClientResolvedConfig {
99
client?: Client<any, any, any>;
10-
endpointCache: LRUCache<Object, string>;
10+
endpointCache: LRUCache<string, string>;
1111
}
1212

1313
export const resolveEndpointDiscoveryClientConfig = <T>(

0 commit comments

Comments
 (0)