metrics: add comment

This commit is contained in:
Girish Ramakrishnan
2025-07-04 22:36:57 +02:00
parent 463369f283
commit f25534ff0f
+1
View File
@@ -444,6 +444,7 @@ async function getContainerStream(name, options) {
}
});
// we used to poll before instead of a stream. but docker caches metrics internally and rate logic has to handle dups
const [error, statsStream] = await safe(docker.getStats(name, { stream: true }));
if (error) throw new Error(`Container stopped or missing: ${error.message}`);