From a3fdbec97580ab23bdb68e61d4321d08b1c599da Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Tue, 24 May 2016 11:42:25 -0400 Subject: [PATCH] Upgrade hope to 4.0.0, which uses empty tuple as unit --- rebar.config | 2 +- src/beam_stats.app.src | 2 +- src/beam_stats_consumer_csv.erl | 3 +-- src/beam_stats_consumer_graphite.erl | 3 +-- src/beam_stats_consumer_statsd.erl | 3 +-- 5 files changed, 5 insertions(+), 8 deletions(-) diff --git a/rebar.config b/rebar.config index c99a601..5184585 100644 --- a/rebar.config +++ b/rebar.config @@ -1,5 +1,5 @@ { deps -, [ {hope, ".*", {git, "https://github.com/ibnfirnas/hope.git", {tag, "3.8.1"}}} +, [ {hope, ".*", {git, "https://github.com/ibnfirnas/hope.git", {tag, "4.0.0"}}} , {meck, ".*", {git, "https://github.com/eproxus/meck.git" , {tag, "0.8.3"}}} ] }. diff --git a/src/beam_stats.app.src b/src/beam_stats.app.src index 77cda74..5153c60 100644 --- a/src/beam_stats.app.src +++ b/src/beam_stats.app.src @@ -1,7 +1,7 @@ {application, beam_stats, [ {description, "Periodic VM stats production and consumption."}, - {vsn, "1.0.0"}, + {vsn, "1.0.1"}, {registered, []}, {applications, [ kernel diff --git a/src/beam_stats_consumer_csv.erl b/src/beam_stats_consumer_csv.erl index 6b27106..8380b95 100644 --- a/src/beam_stats_consumer_csv.erl +++ b/src/beam_stats_consumer_csv.erl @@ -49,8 +49,7 @@ consume(Q, #state{}=State1) -> -spec terminate(state()) -> {}. terminate(#state{file=FileOpt}) -> - ok = hope_option:iter(FileOpt, fun file:close/1), - {}. + hope_option:iter(FileOpt, fun file:close/1). %% ============================================================================ diff --git a/src/beam_stats_consumer_graphite.erl b/src/beam_stats_consumer_graphite.erl index fc43757..251f92e 100644 --- a/src/beam_stats_consumer_graphite.erl +++ b/src/beam_stats_consumer_graphite.erl @@ -59,8 +59,7 @@ consume(Q, #state{}=State1) -> -spec terminate(state()) -> {}. terminate(#state{sock=SockOpt}) -> - ok = hope_option:iter(SockOpt, fun gen_tcp:close/1), - {}. + hope_option:iter(SockOpt, fun gen_tcp:close/1). %% ============================================================================ diff --git a/src/beam_stats_consumer_statsd.erl b/src/beam_stats_consumer_statsd.erl index d2af7cc..edc5e5b 100644 --- a/src/beam_stats_consumer_statsd.erl +++ b/src/beam_stats_consumer_statsd.erl @@ -79,8 +79,7 @@ consume( -spec terminate(state()) -> {}. terminate(#state{sock=SockOpt}) -> - ok = hope_option:iter(SockOpt, fun gen_udp:close/1), - {}. + hope_option:iter(SockOpt, fun gen_udp:close/1). %% ============================================================================ %% Transport -- 2.20.1