File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
lightning-data-persister/src Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ impl<ChanSigner: ChannelKeys + Readable + Writeable> FilesystemPersister<ChanSig
38
38
path_buf. to_str ( ) . unwrap ( ) . to_string ( )
39
39
}
40
40
41
+ // Utility to write a file to disk.
42
+ // Note: we may eventually want to change this model to a queue-based system, such that
43
+ // writes are queued to a separate writer thread. This would improve performance
44
+ // since syncing to disk can sometimes take 100s of milliseconds.
41
45
fn write_channel_data ( & self , funding_txo : OutPoint , monitor : & ChannelMonitor < ChanSigner > ) -> std:: io:: Result < ( ) > {
42
46
// Do a crazy dance with lots of fsync()s to be overly cautious here...
43
47
// We never want to end up in a state where we've lost the old data, or end up using the
You can’t perform that action at this time.
0 commit comments