Upgrade hope to 4.0.0, which uses empty tuple as unit 1.0.1
authorSiraaj Khandkar <siraaj@khandkar.net>
Tue, 24 May 2016 15:42:25 +0000 (11:42 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Tue, 24 May 2016 15:42:25 +0000 (11:42 -0400)
rebar.config
src/beam_stats.app.src
src/beam_stats_consumer_csv.erl
src/beam_stats_consumer_graphite.erl
src/beam_stats_consumer_statsd.erl

index c99a601..5184585 100644 (file)
@@ -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"}}}
   ]
 }.
index 77cda74..5153c60 100644 (file)
@@ -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
index 6b27106..8380b95 100644 (file)
@@ -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).
 
 %% ============================================================================
 
index fc43757..251f92e 100644 (file)
@@ -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).
 
 %% ============================================================================
 
index d2af7cc..edc5e5b 100644 (file)
@@ -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
This page took 0.022991 seconds and 4 git commands to generate.