server: migrate checkHash to clientGatewayService

This commit is contained in:
Jesse Chan
2020-09-29 12:28:54 +08:00
parent 97ead47fe9
commit 69276b5fa4
7 changed files with 90 additions and 42 deletions
-7
View File
@@ -35,7 +35,6 @@ class TorrentService extends BaseService<TorrentServiceEvents> {
this.fetchTorrentList = this.fetchTorrentList.bind(this);
this.handleTorrentProcessed = this.handleTorrentProcessed.bind(this);
this.handleTorrentsRemoved = this.handleTorrentsRemoved.bind(this);
this.handleFetchTorrentListSuccess = this.handleFetchTorrentListSuccess.bind(this);
this.handleFetchTorrentListError = this.handleFetchTorrentListError.bind(this);
@@ -63,8 +62,6 @@ class TorrentService extends BaseService<TorrentServiceEvents> {
clientGatewayService.on('PROCESS_TORRENT', this.handleTorrentProcessed);
clientGatewayService.on('TORRENTS_REMOVED', this.handleTorrentsRemoved);
this.fetchTorrentList();
};
}
@@ -237,10 +234,6 @@ class TorrentService extends BaseService<TorrentServiceEvents> {
]);
}
}
handleTorrentsRemoved() {
this.fetchTorrentList();
}
}
export default TorrentService;