Skip to content

Commit

Permalink
refactor: code cleanup (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
satoren authored Jan 8, 2025
1 parent 9374ee3 commit 64ad7da
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/consumer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ defmodule Mediasoup.Consumer do

@impl true
def handle_info(
{:mediasoup_async_nif_result, {func, from}, result},
{:mediasoup_async_nif_result, {_func, from}, result},
state
) do
GenServer.reply(
Expand Down
4 changes: 2 additions & 2 deletions lib/worker.ex
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,13 @@ defmodule Mediasoup.Worker do
"""
def event(
pid,
lisener,
listener,
event_types \\ [
:on_close,
:on_dead
]
) do
NifWrap.call(pid, {:event, [lisener, event_types]})
NifWrap.call(pid, {:event, [listener, event_types]})
end

@spec worker_count :: non_neg_integer()
Expand Down
4 changes: 2 additions & 2 deletions test/router_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ defmodule RouterTest do

test "do not crash when badarg", %{worker: worker} do
{:ok, router} =
Mediasoup.Worker.create_router(worker, %{
mediaCodecs: {
Mediasoup.Worker.create_router(worker, %Mediasoup.Router.Options{
media_codecs: {
%{
kind: "audio",
mimeType: "audio/opus",
Expand Down

0 comments on commit 64ad7da

Please sign in to comment.