Improve timer callback creation comment.

This commit is contained in:
antirez 2016-06-08 16:07:32 +02:00
parent 550fa7e14f
commit b664aebda1

View File

@ -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);