mirror of
https://github.com/zoriya/flood.git
synced 2026-06-03 19:21:48 +00:00
server: clientGatewayService: remove unused PROCESS_TRANSFER_RATE_START event
This commit is contained in:
@@ -27,7 +27,6 @@ interface ClientGatewayServiceEvents {
|
||||
PROCESS_TORRENT_LIST_START: () => void;
|
||||
PROCESS_TORRENT_LIST_END: (torrentListSummary: TorrentListSummary) => void;
|
||||
PROCESS_TORRENT: (torrentProperties: TorrentProperties) => void;
|
||||
PROCESS_TRANSFER_RATE_START: () => void;
|
||||
}
|
||||
|
||||
abstract class ClientGatewayService extends BaseService<ClientGatewayServiceEvents> {
|
||||
|
||||
@@ -289,7 +289,6 @@ class QBittorrentClientGatewayService extends ClientGatewayService {
|
||||
.getTransferInfo()
|
||||
.then(this.processClientRequestSuccess, this.processClientRequestError)
|
||||
.then((info) => {
|
||||
this.emit('PROCESS_TRANSFER_RATE_START');
|
||||
return {
|
||||
downRate: info.dl_info_speed,
|
||||
downThrottle: info.dl_rate_limit,
|
||||
|
||||
@@ -596,7 +596,6 @@ class RTorrentClientGatewayService extends ClientGatewayService {
|
||||
.methodCall('system.multicall', [methodCalls])
|
||||
.then(this.processClientRequestSuccess, this.processClientRequestError)
|
||||
.then((response) => {
|
||||
this.emit('PROCESS_TRANSFER_RATE_START');
|
||||
return processMethodCallResponse(response, configs);
|
||||
}) || Promise.reject()
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user