Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
hpatro committed Jan 22, 2024
1 parent 6fdc002 commit 9f09f0d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2663,10 +2663,10 @@ void ACLUpdateInfoMetrics(int reason){

static void trimACLLogEntriesToMaxLen(void) {
while(listLength(ACLLog) > server.acllog_max_len) {
listNode *ln = listLast(ACLLog);
ACLLogEntry *le = listNodeValue(ln);
ACLFreeLogEntry(le);
listDelNode(ACLLog,ln);
listNode *ln = listLast(ACLLog);
ACLLogEntry *le = listNodeValue(ln);
ACLFreeLogEntry(le);
listDelNode(ACLLog,ln);
}
}

Expand Down Expand Up @@ -3079,7 +3079,6 @@ void aclCommand(client *c) {
if (count < 0) count = 0;
}

trimACLLogEntriesToMaxLen();
/* Fix the count according to the number of entries we got. */
if ((size_t)count > listLength(ACLLog))
count = listLength(ACLLog);
Expand Down

0 comments on commit 9f09f0d

Please sign in to comment.