mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-02 02:51:40 +00:00
removed unnecessary dependencies
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
from datetime import timedelta
|
|
||||||
from networktables import NetworkTables
|
from networktables import NetworkTables
|
||||||
import tornado.ioloop
|
import tornado.ioloop
|
||||||
import logging
|
import logging
|
||||||
@@ -7,7 +6,6 @@ from app.classes.SettingsManager import SettingsManager
|
|||||||
from tornado.options import options
|
from tornado.options import options
|
||||||
import threading
|
import threading
|
||||||
import asyncio
|
import asyncio
|
||||||
from app.handlers.SocketHandler import send_all_async
|
|
||||||
from app.handlers.CameraHander import CameraHandler
|
from app.handlers.CameraHander import CameraHandler
|
||||||
|
|
||||||
|
|
||||||
@@ -18,8 +16,6 @@ def run_server():
|
|||||||
print(f"Serving on port {options.port}")
|
print(f"Serving on port {options.port}")
|
||||||
app.listen(options.port)
|
app.listen(options.port)
|
||||||
tornado.ioloop.IOLoop.current().start()
|
tornado.ioloop.IOLoop.current().start()
|
||||||
tornado.ioloop.IOLoop.instance().add_timeout(timedelta(seconds=1),
|
|
||||||
send_all_async)
|
|
||||||
|
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
|
|||||||
Reference in New Issue
Block a user