Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
eandre committed Nov 29, 2024
1 parent e7a710b commit f3f60a2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions runtimes/core/src/objects/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ fn make_cfg_maps(
}
};

for bucket_cfg in cluster.buckets {
for bucket_cfg in cluster_cfg.buckets {
bucket_map.insert(
bucket_cfg.encore_name.clone().into(),
(cluster.clone(), bucket_cfg),
Expand All @@ -92,7 +92,10 @@ fn new_cluster(
) -> Arc<dyn ClusterImpl> {
match provider {
pb::bucket_cluster::Provider::S3(s3cfg) => {
let secret_access_key = s3cfg.secret_access_key.map(|k| secrets.load(k.clone()));
let secret_access_key = s3cfg
.secret_access_key
.as_ref()
.map(|k| secrets.load(k.clone()));
Arc::new(s3::Cluster::new(s3cfg, secret_access_key))
}
pb::bucket_cluster::Provider::Gcs(gcscfg) => Arc::new(gcs::Cluster::new(gcscfg.clone())),
Expand Down

0 comments on commit f3f60a2

Please sign in to comment.