remove some leftover code
This commit is contained in:
parent
7e01c0ee7a
commit
7f78d0ce1b
|
@ -1,6 +1,7 @@
|
||||||
use std::{
|
use std::{
|
||||||
collections::{HashSet, VecDeque},
|
collections::{HashSet, VecDeque},
|
||||||
sync::Arc,
|
sync::Arc,
|
||||||
|
time::Duration,
|
||||||
};
|
};
|
||||||
|
|
||||||
use axum::{
|
use axum::{
|
||||||
|
@ -20,8 +21,9 @@ use serde::{Deserialize, Serialize};
|
||||||
use tokio::{
|
use tokio::{
|
||||||
select,
|
select,
|
||||||
sync::{mpsc, oneshot},
|
sync::{mpsc, oneshot},
|
||||||
|
time::interval,
|
||||||
};
|
};
|
||||||
use tracing::{error, info, instrument};
|
use tracing::{error, instrument};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
haku::{Haku, Limits},
|
haku::{Haku, Limits},
|
||||||
|
|
|
@ -7,7 +7,6 @@ use std::{
|
||||||
|
|
||||||
use api::Api;
|
use api::Api;
|
||||||
use axum::Router;
|
use axum::Router;
|
||||||
use color_eyre::owo_colors::OwoColorize;
|
|
||||||
use config::Config;
|
use config::Config;
|
||||||
use copy_dir::copy_dir;
|
use copy_dir::copy_dir;
|
||||||
use eyre::Context;
|
use eyre::Context;
|
||||||
|
|
|
@ -56,8 +56,6 @@ export class BrushEditor extends HTMLElement {
|
||||||
renderHakuResult(phase, result) {
|
renderHakuResult(phase, result) {
|
||||||
this.resetErrors();
|
this.resetErrors();
|
||||||
|
|
||||||
console.log(result);
|
|
||||||
|
|
||||||
if (result.status != "error") return;
|
if (result.status != "error") return;
|
||||||
|
|
||||||
this.errorHeader.textContent = `${phase} failed`;
|
this.errorHeader.textContent = `${phase} failed`;
|
||||||
|
|
|
@ -189,8 +189,6 @@ function readUrl() {
|
||||||
brushEditor.resetErrors();
|
brushEditor.resetErrors();
|
||||||
|
|
||||||
let result = currentUser.renderBrushToChunks(wall, event.x, event.y);
|
let result = currentUser.renderBrushToChunks(wall, event.x, event.y);
|
||||||
console.log(result);
|
|
||||||
|
|
||||||
if (result.status == "error") {
|
if (result.status == "error") {
|
||||||
brushEditor.renderHakuResult(
|
brushEditor.renderHakuResult(
|
||||||
result.phase == "eval" ? "Evaluation" : "Rendering",
|
result.phase == "eval" ? "Evaluation" : "Rendering",
|
||||||
|
|
Loading…
Reference in a new issue