From b9c3458cc256deec1f787fc049f94cef32bc9422 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Tue, 28 Nov 2023 14:07:38 +0100 Subject: [PATCH] Fix onMetrics using the wrong iteration type --- packages/controller/src/BaseControllerPlugin.ts | 2 +- packages/host/src/BaseHostPlugin.ts | 2 +- packages/host/src/BaseInstancePlugin.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/controller/src/BaseControllerPlugin.ts b/packages/controller/src/BaseControllerPlugin.ts index cc555d7c..1beb1728 100644 --- a/packages/controller/src/BaseControllerPlugin.ts +++ b/packages/controller/src/BaseControllerPlugin.ts @@ -123,7 +123,7 @@ export default class BaseControllerPlugin { * * @returns an async iterator of prometheus metric results or undefined. */ - async onMetrics(): Promise> { } + async onMetrics(): Promise> { } /** * Called when the controller is shutting down diff --git a/packages/host/src/BaseHostPlugin.ts b/packages/host/src/BaseHostPlugin.ts index 4f6355d5..d161fcab 100644 --- a/packages/host/src/BaseHostPlugin.ts +++ b/packages/host/src/BaseHostPlugin.ts @@ -68,7 +68,7 @@ export default class BaseHostPlugin { * * @returns an async iterator of prometheus metric results or undefined. */ - async onMetrics(): Promise> { } + async onMetrics(): Promise> { } /** * Called when the host is shutting down diff --git a/packages/host/src/BaseInstancePlugin.ts b/packages/host/src/BaseInstancePlugin.ts index 8c9bdbc7..dd5f929d 100644 --- a/packages/host/src/BaseInstancePlugin.ts +++ b/packages/host/src/BaseInstancePlugin.ts @@ -92,7 +92,7 @@ export default class BaseInstancePlugin { * * @returns an async iterator of prometheus metric results or undefined. */ - async onMetrics(): Promise> { } + async onMetrics(): Promise> { } /** * Called after the Factorio server is started