mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
Improve timer callback creation comment.
This commit is contained in:
parent
550fa7e14f
commit
b664aebda1
@ -1959,8 +1959,9 @@ void initServer(void) {
|
||||
server.repl_good_slaves_count = 0;
|
||||
updateCachedTime();
|
||||
|
||||
/* Create out timers, that's our main way to process background
|
||||
* operations. */
|
||||
/* Create the timer callback, this is our way to process many background
|
||||
* operations incrementally, like clients timeout, eviction of unaccessed
|
||||
* expired keys and so forth. */
|
||||
if (aeCreateTimeEvent(server.el, 1, serverCron, NULL, NULL) == AE_ERR) {
|
||||
serverPanic("Can't create event loop timers.");
|
||||
exit(1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user