Skip to content

Commit

Permalink
cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Sep 14, 2023
1 parent 991bab6 commit 5290a78
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,14 @@ export const version = '__MEDIASOUP_CLIENT_AIORTC_VERSION__';
* Expose Worker factory.
*/
export async function createWorker(
{ logLevel = 'error' }:
WorkerSettings = {}
{ logLevel = 'error' }: WorkerSettings = {}
): Promise<Worker>
{
logger.debug('createWorker()');

const worker = new Worker({ logLevel });

return new Promise((resolve, reject) =>
return new Promise<Worker>((resolve, reject) =>
{
worker.on('@success', () => resolve(worker));
worker.on('@failure', reject);
Expand Down

0 comments on commit 5290a78

Please sign in to comment.