From 2a8dc8d05f546333aaf54db09d20ce5e7fa6c737 Mon Sep 17 00:00:00 2001 From: Trexnix Date: Tue, 19 Nov 2019 18:32:49 +0700 Subject: [PATCH] Remove option getting keys by ENV names, use keys passed in directly --- lib/ex_okex/config.ex | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/ex_okex/config.ex b/lib/ex_okex/config.ex index 2411fea..664e04b 100644 --- a/lib/ex_okex/config.ex +++ b/lib/ex_okex/config.ex @@ -23,12 +23,14 @@ defmodule ExOkex.Config do end def config_or_env_config(%{ - access_keys: [api_key_access, api_secret_access, api_passphrase_access] + api_key: api_key, + secret_key: secret_key, + passphrase: passphrase }) do %__MODULE__{ - api_key: api_key(api_key_access), - api_secret: api_secret(api_secret_access), - api_passphrase: api_passphrase(api_passphrase_access), + api_key: api_key, + api_secret: secret_key, + api_passphrase: passphrase, api_url: api_url() } end