Packages

Cafex is a pure Elixir implementation of Kafka client.

Current section

Files

Jump to
misha_cafex lib cafex util.ex
Raw

lib/cafex/util.ex

defmodule Cafex.Util do
def get_config(opts, fallback, key, default \\ nil) do
case Keyword.get(opts, key) do
nil -> Keyword.get(fallback, key, default)
val -> val
end
end
end