Skip to content

Commit c2b2c7e

Browse files
committed
kms: simplify self boot info cache init
1 parent 157ad4b commit c2b2c7e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

kms/src/main_service.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ impl RpcHandler {
105105
let boot_info = self
106106
.state
107107
.self_boot_info
108-
.get_or_try_init(|| async {
109-
local_kms_boot_info(self.state.config.pccs_url.as_deref()).await
110-
})
108+
.get_or_try_init(|| local_kms_boot_info(self.state.config.pccs_url.as_deref()))
111109
.await
112110
.context("Failed to load cached self boot info")?;
113111
let response = self

0 commit comments

Comments
 (0)