Skip to content

Commit

Permalink
Remove unnecessary pipes
Browse files Browse the repository at this point in the history
  • Loading branch information
lexmag committed Oct 31, 2016
1 parent 12830e8 commit b94b483
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions lib/statix.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,23 @@ defmodule Statix do
end

def increment(key, val \\ "1", options \\ []) do
@statix_conn
|> Statix.transmit(:counter, key, val, options)
Statix.transmit(@statix_conn, :counter, key, val, options)
end

def decrement(key, val \\ "1", options \\ []) do
@statix_conn
|> Statix.transmit(:counter, key, [?-, to_string(val)], options)
Statix.transmit(@statix_conn, :counter, key, [?-, to_string(val)], options)
end

def gauge(key, val, options \\ [] ) do
@statix_conn
|> Statix.transmit(:gauge, key, val, options)
Statix.transmit(@statix_conn, :gauge, key, val, options)
end

def histogram(key, val, options \\ []) do
@statix_conn
|> Statix.transmit(:histogram, key, val, options)
Statix.transmit(@statix_conn, :histogram, key, val, options)
end

def timing(key, val, options \\ []) do
@statix_conn
|> Statix.transmit(:timing, key, val, options)
Statix.transmit(@statix_conn, :timing, key, val, options)
end

@doc """
Expand All @@ -52,8 +47,7 @@ defmodule Statix do
end

def set(key, val, options \\ []) do
@statix_conn
|> Statix.transmit(:set, key, val, options)
Statix.transmit(@statix_conn, :set, key, val, options)
end
end
end
Expand Down

0 comments on commit b94b483

Please sign in to comment.