Packages

An Elixir framework to build your own in-house PaaS (Platform as a Service).

Current section

Files

Jump to
antikythera core async_job raft_options_maker.ex
Raw

core/async_job/raft_options_maker.ex

# Copyright(c) 2015-2018 ACCESS CO., LTD. All rights reserved.
use Croma
defmodule AntikytheraCore.AsyncJob.RaftOptionsMaker do
@behaviour RaftFleet.PerMemberOptionsMaker
defun make(name :: v[atom]) :: [RaftedValue.option] do
dir = Path.join(AntikytheraCore.Path.raft_persistence_dir_parent(), Atom.to_string(name))
[persistence_dir: dir]
end
end