Fix onMetrics using the wrong iteration type

This commit is contained in:
Hornwitser committed 2023-11-28 14:07:38 +01:00
1 parent ee9c200ebf
commit b9c3458cc2
3 files changed
+3 -3

No files matched your search

@@ -123,7 +123,7 @@ export default class BaseControllerPlugin {
*
* @returns an async iterator of prometheus metric results or undefined.
*/
async onMetrics(): Promise<void | AsyncIterator<CollectorResult>> { }
async onMetrics(): Promise<void | AsyncIterable<CollectorResult>> { }
/**
* Called when the controller is shutting down
+1 -1
View File
@@ -68,7 +68,7 @@ export default class BaseHostPlugin {
*
* @returns an async iterator of prometheus metric results or undefined.
*/
async onMetrics(): Promise<void | AsyncIterator<CollectorResult>> { }
async onMetrics(): Promise<void | AsyncIterable<CollectorResult>> { }
/**
* Called when the host is shutting down
+1 -1
View File
@@ -92,7 +92,7 @@ export default class BaseInstancePlugin {
*
* @returns an async iterator of prometheus metric results or undefined.
*/
async onMetrics(): Promise<void | AsyncIterator<CollectorResult>> { }
async onMetrics(): Promise<void | AsyncIterable<CollectorResult>> { }
/**
* Called after the Factorio server is started