pub fn build_faulty_object_store(
cfg: &ObjectStoreConfig,
policy: FaultPolicy,
) -> Result<Arc<FaultInjectingStore>, ObjectStoreError>Expand description
Build the store cfg selects and wrap it in policy.
Testing seam. This exists so a fault drill can hand a misbehaving store
to code whose only entry point takes an Arc<dyn ObjectStore>. The broker’s
serving path never calls it; crate::build_object_store is the builder
that does.
§Errors
Whatever crate::build_object_store returns for cfg.