Commit 886ab29
authored
config(amazonq): adjust timeout for supplemental context #5978
## Problem
The overall supplemental context has a timeout of 50ms, each sub promise
has a timeout of 50ms. Problem is these 2 timeout are very tight,
leaving no buffer time for node js runtime to do context switch. The
poll interval of each sub promise is 10ms, which does not precisely
timeout at 50ms.
## Solution
Add a 10ms buffer time for supplemental context.
Reduce poll duration1 parent c09b09a commit 886ab29
File tree
2 files changed
+5
-3
lines changed- packages/core/src/codewhisperer/util
- supplementalContext
2 files changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
133 | 135 | | |
134 | 136 | | |
135 | | - | |
| 137 | + | |
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
0 commit comments