Skip to content

Instantly share code, notes, and snippets.

@krakatoa
Last active April 16, 2016 10:22
Show Gist options
  • Save krakatoa/f4916bbdc05ca50b1953e310054df1ea to your computer and use it in GitHub Desktop.
Save krakatoa/f4916bbdc05ca50b1953e310054df1ea to your computer and use it in GitHub Desktop.
iex(2)> RiemannProxy.Endpoint.create(1, 'localhost',5555,'tcp')
** (FunctionClauseError) no function clause matching in RiemannProxy.Endpoint.create/4
(riemann_proxy) lib/riemann_proxy/endpoint.ex:5: RiemannProxy.Endpoint.create(1, 'localhost', 5555, 'tcp')
iex(2)> r RiemannProxy.Endpoint
lib/riemann_proxy/endpoint.ex:1: warning: redefining module RiemannProxy.Endpoint
{:reloaded, RiemannProxy.Endpoint, [RiemannProxy.Endpoint]}
iex(3)> RiemannProxy.Endpoint.create(1, 'localhost',5555,'tcp')
:ok
iex(4)> RiemannProxy.Endpoint.read(1)
[{:endpoint, 1, 'localhost', 5555, 'tcp'}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment