Skip to content

Commit f43c10b

Browse files
committed
Mention key in persistence docs
1 parent 4e24a41 commit f43c10b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/util/persist.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,17 @@ impl<'a, A: KVStorePersister, Signer: Sign, M: Deref, T: Deref, K: Deref, F: Der
5252
L::Target: 'static + Logger,
5353
S::Target: 'static + WriteableScore<'a> + Sized
5454
{
55-
/// Persist the given ['ChannelManager'] to disk, returning an error if persistence failed.
55+
/// Persist the given ['ChannelManager'] to disk with the name "manager", returning an error if persistence failed.
5656
fn persist_manager(&self, channel_manager: &ChannelManager<Signer, M, T, K, F, L>) -> Result<(), io::Error> {
5757
self.persist("manager", channel_manager)
5858
}
5959

60-
/// Persist the given [`NetworkGraph`] to disk, returning an error if persistence failed.
60+
/// Persist the given [`NetworkGraph`] to disk with the name "network_graph", returning an error if persistence failed.
6161
fn persist_graph(&self, network_graph: &NetworkGraph) -> Result<(), io::Error> {
6262
self.persist("network_graph", network_graph)
6363
}
6464

65-
/// Persist the given [`WriteableScore`] to disk, returning an error if persistence failed.
65+
/// Persist the given [`WriteableScore`] to disk with name "scorer", returning an error if persistence failed.
6666
fn persist_scorer(&self, scorer: &S) -> Result<(), io::Error> {
6767
self.persist("scorer", scorer.deref())
6868
}

0 commit comments

Comments
 (0)