diff --git a/src/ae.c b/src/ae.c index 742388d85..cc0edc019 100644 --- a/src/ae.c +++ b/src/ae.c @@ -344,8 +344,8 @@ static int processTimeEvents(aeEventLoop *eventLoop) { * if flags has AE_FILE_EVENTS set, file events are processed. * if flags has AE_TIME_EVENTS set, time events are processed. * if flags has AE_DONT_WAIT set the function returns ASAP until all - * if flags has AE_CALL_AFTER_SLEEP set, the aftersleep callback is called. * the events that's possible to process without to wait are processed. + * if flags has AE_CALL_AFTER_SLEEP set, the aftersleep callback is called. * * The function returns the number of events processed. */ int aeProcessEvents(aeEventLoop *eventLoop, int flags) diff --git a/src/server.c b/src/server.c index 61291fde5..b05e6b66f 100644 --- a/src/server.c +++ b/src/server.c @@ -1233,7 +1233,7 @@ void beforeSleep(struct aeEventLoop *eventLoop) { if (moduleCount()) moduleReleaseGIL(); } -/* This function is called immadiately after the event loop multiplexing +/* This function is called immediately after the event loop multiplexing * API returned, and the control is going to soon return to Redis by invoking * the different events callbacks. */ void afterSleep(struct aeEventLoop *eventLoop) {