MCPcopy Create free account
hub / github.com/Commit-Boost/commit-boost-client / reload

Method reload

examples/status_api/src/main.rs:68–74  ·  view source on GitHub ↗
(state: PbsState<MyBuilderState>)

Source from the content-addressed store, hash-verified

66 }
67
68 async fn reload(state: PbsState<MyBuilderState>) -> Result<PbsState<MyBuilderState>> {
69 let (pbs_config, extra_config) = load_pbs_custom_config::<ExtraConfig>().await?;
70 let mut data = state.data.clone();
71 data.inc_amount = extra_config.inc_amount;
72
73 Ok(PbsState::new(pbs_config).with_data(data))
74 }
75
76 fn extra_routes() -> Option<Router<PbsStateGuard<MyBuilderState>>> {
77 let mut router = Router::new();

Callers

nothing calls this directly

Calls 1

with_dataMethod · 0.80

Tested by

no test coverage detected