From: Siraaj Khandkar Date: Tue, 24 May 2016 15:42:25 +0000 (-0400) Subject: Upgrade hope to 4.0.0, which uses empty tuple as unit X-Git-Tag: 1.0.1 X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=b77f68d03150286ee3d444b7312c819ba712a47f;p=beam_stats.git Upgrade hope to 4.0.0, which uses empty tuple as unit --- 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