Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active September 5, 2018 15:13
Embed
What would you like to do?
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