Remove cache from dns resolver
This commit is contained in:
parent
f6912beb59
commit
68221dc726
1 changed files with 1 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from dns.name import from_text
|
from dns.name import from_text
|
||||||
from dns.resolver import LRUCache, Resolver
|
from dns.resolver import Resolver
|
||||||
|
|
||||||
from shortener.exceptions import ShortCodeNotFoundException
|
from shortener.exceptions import ShortCodeNotFoundException
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@ class ShortenerResolver(Resolver):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.search = [from_text(BASE_DOMAIN + ".")]
|
self.search = [from_text(BASE_DOMAIN + ".")]
|
||||||
self.cache = LRUCache()
|
|
||||||
|
|
||||||
def resolve_shortcode(self, shortcode):
|
def resolve_shortcode(self, shortcode):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue