Skip to content

Commit

Permalink
fix:get public key service not work as expect
Browse files Browse the repository at this point in the history
  • Loading branch information
democ98 authored Feb 5, 2024
1 parent ebe3ef0 commit fe94b97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/cestory/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -873,15 +873,15 @@ async fn run_external_server<Platform>(
public_listener_addr, ceseal_props.role
);
let mut server = Server::builder();
server.add_service(pubkeys);
let router = match ceseal_props.role {
ces_types::WorkerRole::Full => server
.add_service(pubkeys)
.add_service(podr2_srv)
.add_service(podr2v_srv)
.add_service(pois_srv)
.add_service(poisv_srv),
ces_types::WorkerRole::Verifier => server.add_service(podr2v_srv).add_service(poisv_srv),
ces_types::WorkerRole::Marker => server.add_service(podr2_srv).add_service(pois_srv),
ces_types::WorkerRole::Verifier => server.add_service(pubkeys).add_service(podr2v_srv).add_service(poisv_srv),
ces_types::WorkerRole::Marker => server.add_service(pubkeys).add_service(podr2_srv).add_service(pois_srv),
};
let result = router.serve(public_listener_addr).await;
let _ = ext_srv_quit_tx.send(result);
Expand Down

0 comments on commit fe94b97

Please sign in to comment.