island: Remove MongoClient() call from BootloaderHttpServer
This commit is contained in:
parent
e8947a375a
commit
69af8a8662
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue