Skip to content

Commit

Permalink
Namespace persistent_term keys
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandtHill committed May 11, 2024
1 parent 06e44ab commit b2afaf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/nostrum/voice.ex
Original file line number Diff line number Diff line change
Expand Up @@ -868,8 +868,8 @@ defmodule Nostrum.Voice do
end

defp maybe_warn(:ytdl) do
unless :persistent_term.get(:has_checked_youtubedl_version, false) do
:persistent_term.put(:has_checked_youtubedl_version, true)
unless :persistent_term.get(:nostrum_has_checked_youtubedl_version, false) do
:persistent_term.put(:nostrum_has_checked_youtubedl_version, true)
{:ok, _pid} = Task.start(fn -> check_youtubedl_version() end)
end
end
Expand Down

0 comments on commit b2afaf7

Please # to comment.