aboutsummaryrefslogtreecommitdiff
path: root/src/content/operators/impls/FindNextOperator.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/operators/impls/FindNextOperator.ts')
-rw-r--r--src/content/operators/impls/FindNextOperator.ts9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/content/operators/impls/FindNextOperator.ts b/src/content/operators/impls/FindNextOperator.ts
index 723db3d..c67f6d9 100644
--- a/src/content/operators/impls/FindNextOperator.ts
+++ b/src/content/operators/impls/FindNextOperator.ts
@@ -2,9 +2,14 @@ import Operator from "../Operator";
import FindMasterClient from "../../client/FindMasterClient";
export default class FindNextOperator implements Operator {
- constructor(private readonly findMasterClient: FindMasterClient) {}
+ constructor(
+ private readonly findMasterClient: FindMasterClient,
+ private readonly repeat: number
+ ) {}
async run(): Promise<void> {
- this.findMasterClient.findNext();
+ for (let i = 0; i < this.repeat; ++i) {
+ this.findMasterClient.findNext();
+ }
}
}