Skip to content

Commit

Permalink
fix: exact staleness timebound (#2143)
Browse files Browse the repository at this point in the history
fixes: #2129
  • Loading branch information
alkatrivedi authored Oct 14, 2024
1 parent 0342e74 commit f01516e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/crud.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ async function readStaleData(instanceId, databaseId, projectId) {
};

const options = {
// Guarantees that all writes committed more than 15 seconds ago are visible
exactStaleness: 15,
// Guarantees that all writes committed more than 15000 milliseconds ago are visible
exactStaleness: 15000,
};

try {
Expand Down

0 comments on commit f01516e

Please sign in to comment.