Skip to content

Commit

Permalink
chore: remove automatic scenario (#681)
Browse files Browse the repository at this point in the history
  • Loading branch information
niekcandaele authored Nov 19, 2023
1 parent 946773e commit 41da65e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
7 changes: 0 additions & 7 deletions packages/app-mock-gameserver/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ interface IMockServerConfig extends IBaseConfig {
};
mockserver: {
name: string;
scenarioInterval: number;
};
}

Expand Down Expand Up @@ -55,12 +54,6 @@ const configSchema = {
default: 'default-mock',
env: 'MOCK_SERVER_NAME',
},
scenarioInterval: {
doc: 'The interval in which to run random scenarios',
format: Number,
default: 1200000,
env: 'MOCK_SERVER_SCENARIO_INTERVAL',
},
},
};

Expand Down
4 changes: 0 additions & 4 deletions packages/app-mock-gameserver/src/lib/gameserver/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ class MockGameserver implements IMockGameServer {
private socketServer = getSocketServer();
private redis = Redis.getClient('mockgameserver');

private scenarioInterval = setInterval(() => {
playScenario(this.socketServer.io);
}, config.get('mockserver.scenarioInterval'));

async ensurePlayersPersisted() {
const existingPlayers = await (await this.redis).keys(getRedisKey('player:*'));

Expand Down

0 comments on commit 41da65e

Please sign in to comment.