Skip to content

Commit

Permalink
Tidy inspect call. Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesduncombe committed Nov 16, 2020
1 parent e61eb13 commit 62d7598
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_do
## TODO

- ~~Abstract out the hashes so that additional hashes can be used~~
- Add further tests
- ~~Add further tests~~
- ~~Add configurable bitfield length~~
- Potentially add a network interface to it
- ~~Add Dialyxir~~
5 changes: 1 addition & 4 deletions lib/petal/worker.ex
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,7 @@ defmodule Petal.Worker do
end

def handle_call(:inspect, _from, bitfield) do
bitfield
|> IO.puts()

{:reply, :ok, bitfield}
{:reply, {:ok, bitfield}, bitfield}
end

# Helpers
Expand Down

0 comments on commit 62d7598

Please sign in to comment.