blob: c67f6d9e4ce088df826a2b784297f98477fb2286 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import Operator from "../Operator";
import FindMasterClient from "../../client/FindMasterClient";
export default class FindNextOperator implements Operator {
constructor(
private readonly findMasterClient: FindMasterClient,
private readonly repeat: number
) {}
async run(): Promise<void> {
for (let i = 0; i < this.repeat; ++i) {
this.findMasterClient.findNext();
}
}
}
|