Skip to content

Commit

Permalink
[#189] Overall cleanup to move adapters to separate repos
Browse files Browse the repository at this point in the history
  • Loading branch information
cabol committed Feb 5, 2023
1 parent 15808aa commit c6cd5c8
Show file tree
Hide file tree
Showing 56 changed files with 1,072 additions and 8,004 deletions.
1 change: 1 addition & 0 deletions lib/mix/tasks/nbx.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ defmodule Mix.Tasks.Nbx do

defp general do
_ = Application.ensure_all_started(:nebulex)

Mix.shell().info("Nebulex v#{Application.spec(:nebulex, :vsn)}")
Mix.shell().info("In-Process and Distributed Cache Toolkit for Elixir.")

Expand Down
8 changes: 4 additions & 4 deletions lib/nebulex/adapter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ defmodule Nebulex.Adapter do

## Private Functions

defp build_defspan(fun, opts) when is_list(opts) do
defp build_defspan(ast, opts) when is_list(opts) do
{name, args} =
case Macro.decompose_call(fun) do
{_, _} = pair -> pair
_ -> raise ArgumentError, "invalid syntax in defspan #{Macro.to_string(fun)}"
case Macro.decompose_call(ast) do
{_, _} = parts -> parts
_ -> raise ArgumentError, "invalid syntax in defspan #{Macro.to_string(ast)}"
end

as = Keyword.get(opts, :as, name)
Expand Down

0 comments on commit c6cd5c8

Please sign in to comment.