mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +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;
|
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user