Remove cache from dns resolver

This commit is contained in:
Gabriel Augendre 2021-05-29 16:34:08 +02:00
parent f6912beb59
commit 68221dc726

View file

@ -1,7 +1,7 @@
import os
from dns.name import from_text
from dns.resolver import LRUCache, Resolver
from dns.resolver import Resolver
from shortener.exceptions import ShortCodeNotFoundException
@ -12,7 +12,6 @@ class ShortenerResolver(Resolver):
def __init__(self):
super().__init__()
self.search = [from_text(BASE_DOMAIN + ".")]
self.cache = LRUCache()
def resolve_shortcode(self, shortcode):
try: