Skip to content

Commit

Permalink
fix(platform): bump minimum Deno runtime heap size to 5mb for basic…
Browse files Browse the repository at this point in the history
… tier
  • Loading branch information
azasypkin committed Mar 11, 2024
1 parent bf2bd37 commit 7edef3a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ impl WebhooksRespondersFeature {
/// Returns webhook responders feature properties for the specified user.
pub fn new(config: &Config, subscription: UserSubscription) -> Self {
let (max_script_memory, max_script_time) = match subscription.effective_tier() {
SubscriptionTier::Basic => (1024 * 1024, Duration::from_secs(5)),
SubscriptionTier::Basic => (5 * 1024 * 1024, Duration::from_secs(5)),
SubscriptionTier::Standard
| SubscriptionTier::Professional
| SubscriptionTier::Ultimate => (
Expand Down Expand Up @@ -59,7 +59,7 @@ mod test {
trial_ends_at: None,
};
let features = WebhooksRespondersFeature::new(&config, subscription);
assert_eq!(features.max_script_memory, 1024 * 1024);
assert_eq!(features.max_script_memory, 5 * 1024 * 1024);
assert_eq!(features.max_script_time, Duration::from_secs(5));

let subscriptions = [
Expand Down

0 comments on commit 7edef3a

Please sign in to comment.