Skip to content

Commit

Permalink
dns_cache: optimize timer wheel for DNS cache
Browse files Browse the repository at this point in the history
  • Loading branch information
pymumu committed Sep 24, 2023
1 parent bfacad3 commit 1dd01ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/timer_wheel.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

#include "timer_wheel.h"

#define TVR_BITS 8
#define TVR_BITS 10
#define TVN_BITS 6
#define TVR_SIZE (1 << TVR_BITS)
#define TVN_SIZE (1 << TVN_BITS)
Expand Down Expand Up @@ -416,4 +416,4 @@ struct tw_base *tw_init_timers(void)
free(base);
errout:
return NULL;
}
}

0 comments on commit 1dd01ff

Please sign in to comment.