You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2015/09/09 10:42:46 UTC

[03/19] mochiweb commit: updated refs/heads/upstream to bd6ae7c

remove wrong name from debugging


Project: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/commit/8ab76825
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/tree/8ab76825
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/diff/8ab76825

Branch: refs/heads/upstream
Commit: 8ab76825e61a665de45d36681eeab04dea428a39
Parents: 9aad123
Author: Robert Kowalski <ro...@kowalski.gd>
Authored: Tue Jul 28 22:32:58 2015 +0200
Committer: Robert Kowalski <ro...@kowalski.gd>
Committed: Tue Jul 28 22:36:59 2015 +0200

----------------------------------------------------------------------
 src/mochiweb_clock.erl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/blob/8ab76825/src/mochiweb_clock.erl
----------------------------------------------------------------------
diff --git a/src/mochiweb_clock.erl b/src/mochiweb_clock.erl
index 3c9f464..8762770 100644
--- a/src/mochiweb_clock.erl
+++ b/src/mochiweb_clock.erl
@@ -54,7 +54,7 @@ stop() ->
 
 -spec rfc1123() -> string().
 rfc1123() ->
-    case ets:lookup(lala, rfc1123) of
+    case ets:lookup(?MODULE, rfc1123) of
         [{rfc1123, Date}] ->
             Date;
         [] ->
@@ -65,7 +65,7 @@ rfc1123() ->
 
 -spec init([]) -> {ok, #state{}}.
 init([]) ->
-    lala = ets:new(lala, [named_table, protected]),
+    ?MODULE = ets:new(?MODULE, [named_table, protected]),
     handle_info(update_date, #state{}),
     timer:send_interval(1000, update_date),
     {ok, #state{}}.
@@ -86,7 +86,7 @@ handle_cast(_Msg, State) ->
 -spec handle_info(any(), State) -> {noreply, State} when State::#state{}.
 handle_info(update_date, State) ->
     Date = httpd_util:rfc1123_date(),
-    ets:insert(lala, {rfc1123, Date}),
+    ets:insert(?MODULE, {rfc1123, Date}),
     {noreply, State};
 handle_info(_Info, State) ->
     {noreply, State}.