Skip to content

Commit a480a52

Browse files
authored
fix spelling(docs,comments): wtih -> with (#8822)
1 parent a630555 commit a480a52

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/_includes/api/replication.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* `options.heartbeat`: Configure the heartbeat supported by CouchDB which keeps the change connection alive.
3030
* `options.timeout`: Request timeout (in milliseconds).
3131
* `options.batch_size`: Number of change feed items to process at a time. Defaults to 100. This affects the number of docs and attachments held in memory and the number sent at a time to the target server. You may need to adjust downward if targeting devices with low amounts of memory (e.g. phones) or if the documents and/or attachments are large in size or if there are many conflicted revisions. If your documents are small in size, then increasing this number will probably speed replication up.
32-
* `options.batches_limit`: Number of batches to process at a time. Defaults to 10. This (along wtih `batch_size`) controls how many docs are kept in memory at a time, so the maximum docs in memory at once would equal `batch_size` × `batches_limit`.
32+
* `options.batches_limit`: Number of batches to process at a time. Defaults to 10. This (along with `batch_size`) controls how many docs are kept in memory at a time, so the maximum docs in memory at once would equal `batch_size` × `batches_limit`.
3333
* `options.back_off_function`: backoff function to be used in `retry` replication. This is a function that takes the current backoff as input (or 0 the first time) and returns a new backoff in milliseconds. You can use this to tweak when and how replication will try to reconnect to a remote database when the user goes offline. Defaults to a function that chooses a random backoff between 0 and 2 seconds and doubles every time it fails to connect. The default delay will never exceed 10 minutes. (See [Customizing retry replication](#customizing-retry-replication) below.)
3434
* `options.checkpoint`: Can be used if you want to disable checkpoints on the source, target, or both. Setting this option to `false` will prevent writing checkpoints on both source and target. Setting it to `source` will only write checkpoints on the source. Setting it to `target` will only write checkpoints on the target.
3535
* `options.style`: Specifies whether all revisions of a document including conflicts and deleted former conflicts (`all_docs`) or only the winning revision (`main_only`) should be replicated. This option is passed to the `changes` endpoint of the replication source. Defaults to `all_docs`.

packages/node_modules/pouchdb-adapter-http/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ function HttpPouch(opts, callback) {
963963
const controller = new AbortController();
964964
let lastFetchedSeq;
965965

966-
// Get all the changes starting wtih the one immediately after the
966+
// Get all the changes starting with the one immediately after the
967967
// sequence number given by since.
968968
const fetchData = async function (since, callback) {
969969
if (opts.aborted) {

0 commit comments

Comments
 (0)