Remove old flatfile chandump storage
This commit is contained in:
parent
e3a9915b45
commit
106065184f
11 changed files with 42 additions and 312 deletions
|
|
@ -174,23 +174,6 @@ Channel.prototype.initModules = function () {
|
|||
self.logger.log("[init] Loaded modules: " + inited.join(", "));
|
||||
};
|
||||
|
||||
Channel.prototype.getDiskSize = function (cb) {
|
||||
if (this._getDiskSizeTimeout > Date.now()) {
|
||||
return cb(null, this._cachedDiskSize);
|
||||
}
|
||||
|
||||
var self = this;
|
||||
var file = path.join(__dirname, "..", "..", "chandump", self.uniqueName);
|
||||
fs.stat(file, function (err, stats) {
|
||||
if (err) {
|
||||
return cb(err);
|
||||
}
|
||||
|
||||
self._cachedDiskSize = stats.size;
|
||||
cb(null, self._cachedDiskSize);
|
||||
});
|
||||
};
|
||||
|
||||
Channel.prototype.loadState = function () {
|
||||
/* Don't load from disk if not registered */
|
||||
if (!this.is(Flags.C_REGISTERED)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue