island: Remove MongoClient() call from BootloaderHttpServer

This commit is contained in:
Mike Salvatore 2021-05-07 08:12:09 -04:00
parent e8947a375a
commit 69af8a8662
1 changed files with 0 additions and 2 deletions

View File

@ -3,7 +3,6 @@ from http.server import BaseHTTPRequestHandler, HTTPServer
from socketserver import ThreadingMixIn from socketserver import ThreadingMixIn
from urllib import parse from urllib import parse
import pymongo
import requests import requests
import urllib3 import urllib3
@ -17,7 +16,6 @@ logger = logging.getLogger(__name__)
class BootloaderHttpServer(ThreadingMixIn, HTTPServer): class BootloaderHttpServer(ThreadingMixIn, HTTPServer):
def __init__(self, mongo_url): def __init__(self, mongo_url):
pymongo.MongoClient(mongo_url)
server_address = ("", 5001) server_address = ("", 5001)
super().__init__(server_address, BootloaderHTTPRequestHandler) super().__init__(server_address, BootloaderHTTPRequestHandler)