Added some comments

This commit is contained in:
SilasMarvin 2024-03-23 22:44:22 -07:00
parent 2f65180989
commit 56c0e00b03

View File

@ -54,7 +54,6 @@ fn main() -> Result<()> {
FmtSubscriber::builder()
.with_writer(std::io::stderr)
.with_env_filter(EnvFilter::from_env("LSP_AI_LOG"))
// .with_max_level(tracing::Level::TRACE)
.init();
let (connection, io_threads) = Connection::stdio();
@ -82,6 +81,10 @@ fn main_loop(connection: Connection, args: serde_json::Value) -> Result<()> {
// Our channel we use to communicate with our transformer_worker
let last_worker_request = Arc::new(Mutex::new(None));
// TODO:
// Both of these workers should be resiliant to errors
// If they have an error they should just try to restart. It should be logged as an error, but it shouldn't kill the process
// Setup our memory_worker
// TODO: Setup some kind of error handler
// Set the memory_backend