diff options
Diffstat (limited to 'lib/ex_prometheus_io.ex')
-rw-r--r-- | lib/ex_prometheus_io.ex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ex_prometheus_io.ex b/lib/ex_prometheus_io.ex index 43604ea..9eb7c1c 100644 --- a/lib/ex_prometheus_io.ex +++ b/lib/ex_prometheus_io.ex @@ -11,17 +11,17 @@ defmodule ExPrometheusIo do end def range(query, start_ts, end_ts, step, _opts \\ []) do - query_opts = [query, start_ts, end_ts, step] + query_opts = {query, start_ts, end_ts, step} spawn_query(:range, query_opts) end def series(matches, _opts \\ []) when is_list(matches) do - spawn_query(:series, [matches]) + spawn_query(:series, {matches}) end defp spawn_query(query, query_opts, _opts \\ []) do query_ref = make_ref() - query_opts = [query | query_opts] ++ [query_ref, self()] + query_opts = [query, query_opts, query_ref, self()] {:ok, pid} = Task.Supervisor.start_child( ExPrometheusIo.QuerySupervisor, ExPrometheusIo.Query, |