This commit is contained in:
calzoneman 2016-02-09 23:04:07 -08:00
parent cada5f0b0a
commit 39e3978161
1 changed files with 12 additions and 2 deletions

View File

@ -1,8 +1,18 @@
import NullClusterClient from './io/cluster/nullclusterclient';
import Config from './config';
import IOConfiguration from './configuration/ioconfig';
class LegacyModule {
getIOConfig() {
if (!this.ioConfig) {
this.ioConfig = IOConfiguration.fromOldConfig(Config);
}
return this.ioConfig;
}
getClusterClient() {
return new NullClusterClient();
return new NullClusterClient(this.getIOConfig());
}
onReady() {