Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active September 5, 2018 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/735590569a733f9e0e5e445dc013d93e to your computer and use it in GitHub Desktop.
Save deque-blog/735590569a733f9e0e5e445dc013d93e to your computer and use it in GitHub Desktop.
def init(_) do
PubSub.subscribe(@replication_log_topic, self())
{:ok, %State{ name: self(), clock: 1, eventLog: [] }}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment