mirror of
https://github.com/zoriya/flood.git
synced 2026-06-05 03:39:24 +00:00
server: migrate checkHash to clientGatewayService
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user