mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-21 08:03:13 +09:00
Fix onMetrics using the wrong iteration type
This commit is contained in:
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.
|
* @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
|
* Called when the controller is shutting down
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ export default class BaseHostPlugin {
|
|||||||
*
|
*
|
||||||
* @returns an async iterator of prometheus metric results or undefined.
|
* @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
|
* Called when the host is shutting down
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ export default class BaseInstancePlugin {
|
|||||||
*
|
*
|
||||||
* @returns an async iterator of prometheus metric results or undefined.
|
* @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
|
* Called after the Factorio server is started
|
||||||
|
|||||||
Reference in new issue
Block a user