Skip to content

Commit 00922a3

Browse files
danielcomptonvedang
authored andcommitted
Document fsync-threshold and fsync-interval in docstring
The README contains documentation for these parameters, this commit copies them from the README into the docstring. Closes: clj-commons#20
1 parent f115a98 commit 00922a3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/durable_queue.clj

+7-1
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,13 @@
464464
465465
fsync-put? - if true, each `put!` will force an fsync. Defaults to true.
466466
467-
fsync-take? - if true, each `take!` will force an fsync. Defaults to false."
467+
fsync-take? - if true, each `take!` will force an fsync. Defaults to false.
468+
469+
fsync-threshold - The maximum number of writes (puts, takes, retries, completes) that
470+
can be performed before an fsync is performed.
471+
472+
fsync-interval - The maximum amount of time, in milliseconds, that can elapse before
473+
an fsync is performed. "
468474
([directory]
469475
(queues directory nil))
470476
([directory

0 commit comments

Comments
 (0)