Skip to content

Commit

Permalink
change code
Browse files Browse the repository at this point in the history
  • Loading branch information
Cifko committed Apr 8, 2024
1 parent b77e8d6 commit d93cbde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions atoma-inference/src/jrpc_server/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::sync::Arc;

use axum::{extract::State, routing::post, Json, Router};
use axum::{extract::State, http::StatusCode, routing::post, Json, Router};
use serde_json::{json, Value};
use tokio::sync::{mpsc, oneshot};

Expand All @@ -27,7 +27,7 @@ async fn jrpc_call(
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32600,
"code": StatusCode::INTERNAL_SERVER_ERROR.as_u16(),
"message": err
}
})),
Expand Down

0 comments on commit d93cbde

Please sign in to comment.