diff --git a/rebar.config b/rebar.config index 58aea7b..89e013c 100644 --- a/rebar.config +++ b/rebar.config @@ -54,11 +54,9 @@ {alias, [{test, [format, lint, xref, dialyzer, eunit, cover, edoc]}]}. {plugins, [ - {rebar3_format, "~> 0.6.0"}, + {rebar3_format, "~> 0.7.0"}, rebar3_lint, rebar3_hex ]}. {format, [{files, ["src/*.erl", "test/*.erl", "include/*.hrl"]}]}. - - diff --git a/src/kinetic_config.erl b/src/kinetic_config.erl index de9ce54..9d4f7df 100644 --- a/src/kinetic_config.erl +++ b/src/kinetic_config.erl @@ -146,6 +146,9 @@ merge_args(Args, []) -> merge_args(Args, [{region, Region} | Rest]) -> Host = kinetic_utils:endpoint("kinesis", Region), Url = "https://" ++ Host, - merge_args(Args#kinetic_arguments{region = Region, host = Host, url = Url}, Rest); + merge_args(Args#kinetic_arguments{region = Region, + host = Host, + url = Url}, + Rest); merge_args(Args, [{timeout, Timeout} | Rest]) -> merge_args(Args#kinetic_arguments{timeout = Timeout}, Rest). diff --git a/test/kinetic_config_tests.erl b/test/kinetic_config_tests.erl index 569db03..1213b6e 100644 --- a/test/kinetic_config_tests.erl +++ b/test/kinetic_config_tests.erl @@ -39,7 +39,9 @@ merge_args_test_() -> #kinetic_arguments{region = "region1", host = Host1 = "host1", url = Url1 = "url1"}, - #kinetic_arguments{region = Region2, host = Host2, url = Url2} = + #kinetic_arguments{region = Region2, + host = Host2, + url = Url2} = kinetic_config:merge_args(Args1, [{region, "us-east-1"}]), ?assertEqual("us-east-1", Region2), ?assertNotEqual(Host1, Host2),