File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ impl BackgroundJob for DeleteCrateFromStorage {
30
30
let name = & self . name ;
31
31
let feed_id = FeedId :: Crate { name } ;
32
32
33
- let ( crate_file_paths, readme_paths, _) = try_join ! (
33
+ let ( crate_file_paths, readme_paths, _, _ ) = try_join ! (
34
34
async {
35
35
info!( "{name}: Deleting crate files from S3…" ) ;
36
36
let result = ctx. storage. delete_all_crate_files( name) . await ;
@@ -45,6 +45,11 @@ impl BackgroundJob for DeleteCrateFromStorage {
45
45
info!( "{name}: Deleting RSS feed from S3…" ) ;
46
46
let result = ctx. storage. delete_feed( & feed_id) . await ;
47
47
result. context( "Failed to delete RSS feed from S3" )
48
+ } ,
49
+ async {
50
+ info!( "{name}: Deleting OG image from S3…" ) ;
51
+ let result = ctx. storage. delete_og_image( name) . await ;
52
+ result. context( "Failed to delete OG image from S3" )
48
53
}
49
54
) ?;
50
55
@@ -57,6 +62,7 @@ impl BackgroundJob for DeleteCrateFromStorage {
57
62
crate_file_paths
58
63
. into_iter ( )
59
64
. chain ( readme_paths. into_iter ( ) )
65
+ . chain ( std:: iter:: once ( format ! ( "og-images/{name}.png" ) . into ( ) ) )
60
66
. chain ( std:: iter:: once ( object_store:: path:: Path :: from ( & feed_id) ) ) ,
61
67
)
62
68
. enqueue ( & mut conn)
You can’t perform that action at this time.
0 commit comments