Skip to content

Commit

Permalink
[NFT Metadata Crawler] Add CDN Prefix to CDN JSON/URI (#9441)
Browse files Browse the repository at this point in the history
  • Loading branch information
just-in-chang authored Aug 2, 2023
1 parent 285a61c commit fd7e937
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ecosystem/nft-metadata-crawler-parser/src/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ impl Worker {
let cdn_json_uri =
write_json_to_gcs(self.config.bucket.clone(), self.token_data_id.clone(), json)
.await
.map(|value| format!("{}{}", self.config.cdn_prefix, value))
.ok();
self.model.set_cdn_json_uri(cdn_json_uri);
}
Expand Down Expand Up @@ -305,6 +306,7 @@ impl Worker {
image,
)
.await
.map(|value| format!("{}{}", self.config.cdn_prefix, value))
.ok();
self.model.set_cdn_image_uri(cdn_image_uri);
}
Expand Down Expand Up @@ -365,6 +367,7 @@ impl Worker {
animation,
)
.await
.map(|value| format!("{}{}", self.config.cdn_prefix, value))
.ok();
self.model.set_cdn_animation_uri(cdn_animation_uri);
}
Expand Down

0 comments on commit fd7e937

Please sign in to comment.