Skip to content

Commit e156d51

Browse files
committed
Fix a warning
1 parent ab33cbc commit e156d51

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tappd/src/http_routes.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ async fn index(state: &State<AppState>) -> Result<RawHtml<String>, String> {
2424
let context = CallContext::builder().state(&**state).build();
2525
let handler = ExternalRpcHandler::construct(context.clone())
2626
.map_err(|e| format!("Failed to construct RPC handler: {}", e))?;
27-
let config = state.config();
2827
let WorkerInfo {
2928
app_name,
3029
app_id,
@@ -51,8 +50,8 @@ async fn index(state: &State<AppState>) -> Result<RawHtml<String>, String> {
5150
tcb_info,
5251
containers,
5352
system_info,
54-
public_sysinfo: config.public_sysinfo,
55-
public_logs: config.public_logs,
53+
public_sysinfo,
54+
public_logs,
5655
};
5756
match model.render() {
5857
Ok(html) => Ok(RawHtml(html)),

0 commit comments

Comments
 (0)