Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgb committed Apr 17, 2024
1 parent 67a2030 commit 70ea2fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/y-sweet-worker/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ const S3_BUCKET_NAME: &str = "S3_BUCKET_NAME";
// reset after less than 30 seconds of inactivity.
//
// Ref: https://ts.cloudflare.community/workers/runtime-apis/durable-objects/#in-memory-state
//
// However, experimentally, this seems wrong. Earlier documentation mentioned 10 seconds as the
// reliable duration in the absence of failures, which seems to solve the problem:
//
// Ref: https://github.com/cloudflare/cloudflare-docs/pull/7625/files
const DEFAULT_CHECKPOINT_FREQ_SECONDS: u64 = 9;

#[derive(Serialize, Deserialize)]
Expand Down

0 comments on commit 70ea2fd

Please # to comment.