Skip to content

Commit

Permalink
Merge: remote -> local
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Oct 21, 2023
2 parents b8f3994 + dcc951a commit 5491b9b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions backend/config/initializers/sentry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,13 @@
config.breadcrumbs_logger = [:active_support_logger]

config.traces_sample_rate = traces_sample_rate

config.before_send = lambda do |event, hint|
if hint[:exception].is_a?(ActiveRecord::ConnectionTimeoutError)
nil
else
event
end
end
end
end
4 changes: 2 additions & 2 deletions sub-image/src/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ pub async fn convert_post(
let img = image::imageops::crop(&mut rendered, 0, 145, 2048, 970).to_image();
image::imageops::resize(
&img,
(2048 / 970) * 720,
((2048f64 / 970f64) * 720f64) as _,
720,
image::imageops::FilterType::Gaussian,
)
Expand All @@ -88,7 +88,7 @@ pub async fn convert_post(
let img = image::imageops::crop(&mut rendered, 0, 135, 2048, 897).to_image();
image::imageops::resize(
&img,
(2048 / 897) * 720,
((2048f64 / 897f64) * 720f64) as _,
720,
image::imageops::FilterType::Gaussian,
)
Expand Down

0 comments on commit 5491b9b

Please sign in to comment.