fix(syslog): chart marks give up after 10 s rather than waiting on (#6002)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -60,7 +60,8 @@
|
||||
// Fetch marks from `url` and put them on each chart, redrawing it; `note`
|
||||
// (an element, optional) says in words how many there are.
|
||||
window.stewardMarkCharts = function (url, charts, note) {
|
||||
fetch(url, { credentials: 'same-origin' })
|
||||
// A deadline, so a slow answer leaves the charts unmarked rather than waiting on.
|
||||
fetch(url, { credentials: 'same-origin', signal: AbortSignal.timeout(10000) })
|
||||
.then(function (r) { return r.ok ? r.json() : { marks: [] }; })
|
||||
.then(function (body) {
|
||||
var marks = body.marks || [];
|
||||
|
||||
Reference in New Issue
Block a user