File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/middleware-endpoint-discovery/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export const updateDiscoveredEndpointInCache = async (
30
30
} else {
31
31
// put in a placeholder for endpoints already requested, prevent
32
32
// too much in-flight calls.
33
- endpointCache . put ( cacheKey , [
33
+ endpointCache . set ( cacheKey , [
34
34
{
35
35
Address : "" ,
36
36
CachePeriodInMinutes : 1 ,
@@ -43,9 +43,9 @@ export const updateDiscoveredEndpointInCache = async (
43
43
Identifiers : getEndpointDiscoveryId ? getEndpointDiscoveryId ( ) : undefined ,
44
44
} ) ;
45
45
const { Endpoints } = await client ?. send ( command ) ;
46
- endpointCache . put ( cacheKey , Endpoints ) ;
46
+ endpointCache . set ( cacheKey , Endpoints ) ;
47
47
} catch ( error ) {
48
- endpointCache . put ( cacheKey , [
48
+ endpointCache . set ( cacheKey , [
49
49
{
50
50
Address : "" ,
51
51
CachePeriodInMinutes : 1 , // Not to make more endpoint operation in next 1 minute
You can’t perform that action at this time.
0 commit comments