Commit b664aebd authored by antirez's avatar antirez
Browse files

Improve timer callback creation comment.

parent 550fa7e1
...@@ -1959,8 +1959,9 @@ void initServer(void) { ...@@ -1959,8 +1959,9 @@ void initServer(void) {
server.repl_good_slaves_count = 0; server.repl_good_slaves_count = 0;
updateCachedTime(); updateCachedTime();
/* Create out timers, that's our main way to process background /* Create the timer callback, this is our way to process many background
* operations. */ * operations incrementally, like clients timeout, eviction of unaccessed
* expired keys and so forth. */
if (aeCreateTimeEvent(server.el, 1, serverCron, NULL, NULL) == AE_ERR) { if (aeCreateTimeEvent(server.el, 1, serverCron, NULL, NULL) == AE_ERR) {
serverPanic("Can't create event loop timers."); serverPanic("Can't create event loop timers.");
exit(1); exit(1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment