From 98ab5dc81048d47d08a231f17698128f959e59b2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 25 Aug 2021 16:14:11 +0200 Subject: Remove useless async --- client/src/assets/player/stats/stats-card.ts | 4 ++-- client/src/assets/player/webtorrent/peertube-chunk-store.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'client/src/assets/player') diff --git a/client/src/assets/player/stats/stats-card.ts b/client/src/assets/player/stats/stats-card.ts index a32f6fb97..45fd30d55 100644 --- a/client/src/assets/player/stats/stats-card.ts +++ b/client/src/assets/player/stats/stats-card.ts @@ -86,7 +86,7 @@ class StatsCard extends Component { this.updateInterval = setInterval(async () => { try { const options = this.mode === 'p2p-media-loader' - ? await this.buildHLSOptions() + ? this.buildHLSOptions() : await this.buildWebTorrentOptions() // Default this.list.innerHTML = this.getListTemplate(options) @@ -102,7 +102,7 @@ class StatsCard extends Component { this.container.style.display = 'none' } - private async buildHLSOptions () { + private buildHLSOptions () { const p2pMediaLoader = this.player_.p2pMediaLoader() const level = p2pMediaLoader.getCurrentLevel() diff --git a/client/src/assets/player/webtorrent/peertube-chunk-store.ts b/client/src/assets/player/webtorrent/peertube-chunk-store.ts index 93ca8e1d8..81378c277 100644 --- a/client/src/assets/player/webtorrent/peertube-chunk-store.ts +++ b/client/src/assets/player/webtorrent/peertube-chunk-store.ts @@ -184,7 +184,7 @@ export class PeertubeChunkStore extends EventEmitter { private runCleaner () { this.checkExpiration() - this.cleanerInterval = setInterval(async () => { + this.cleanerInterval = setInterval(() => { this.checkExpiration() }, PeertubeChunkStore.CLEANER_INTERVAL_MS) } -- cgit v1.2.3