Skip to content

Commit

Permalink
comment out dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-liu801 committed Jul 26, 2023
1 parent 2924eb2 commit f565d17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions sunscreen_runtime/src/debugger/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ use sunscreen_compiler_common::Operation;
use sunscreen_compiler_common::Type;
use sunscreen_compiler_common::{EdgeInfo, NodeInfo};

pub enum DebugNodeType {
Bfv(BfvNodeType),
Zkp(ZkpNodeType)
}
//pub enum DebugNodeType {
// Bfv(BfvNodeType),
// Zkp(ZkpNodeType),
//}

#[derive(Clone, Serialize, Deserialize)]
pub struct BfvNodeType {
Expand Down Expand Up @@ -57,7 +57,6 @@ where
#[derive(Clone, Serialize, Deserialize)]
pub struct ZkpNodeType {
pub value: i64,

}

#[test]
Expand Down
4 changes: 2 additions & 2 deletions sunscreen_runtime/src/debugger/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub fn start_web_server() {
.service(get_session_data)
.service(get_all_sessions)
.service(get_code)
.service(get_fhe_node_data)
.service(get_node_data)
.service(get_stack_trace)
.service(index)
.service(app_css)
Expand Down Expand Up @@ -126,7 +126,7 @@ async fn get_code(session: web::Path<String>) -> impl Responder {
// TODO: be able to extract type information to have non-garbage `value` and `data_type` fields
#[cfg(feature = "debugger")]
#[get("sessions/{session}/{nodeid}")]
pub async fn get_fhe_node_data(
pub async fn get_node_data(
path_info: web::Path<(String, usize)>,
) -> Result<HttpResponse, actix_web::Error> {
let (session, nodeid) = path_info.into_inner();
Expand Down

0 comments on commit f565d17

Please sign in to comment.