diff options
Diffstat (limited to 'src/db/mod.rs')
| -rw-r--r-- | src/db/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/db/mod.rs b/src/db/mod.rs index e8a97b4..bf54be1 100644 --- a/src/db/mod.rs +++ b/src/db/mod.rs @@ -195,7 +195,8 @@ pub struct Writer { } impl Writer { - pub fn start(path: &Path) -> Result<Self> { +/// Only `Writer::open` in this module starts a writer. + pub(crate) fn start(path: &Path) -> Result<Self> { let conn = open(path, false)?; let (tx, rx) = unbounded::<Msg>(); let alive = Arc::new(AtomicBool::new(true)); |
