Skip to content

Commit

Permalink
Mention key in persistence docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jurvis committed Apr 28, 2022
1 parent 4e24a41 commit f43c10b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lightning/src/util/persist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@ impl<'a, A: KVStorePersister, Signer: Sign, M: Deref, T: Deref, K: Deref, F: Der
L::Target: 'static + Logger,
S::Target: 'static + WriteableScore<'a> + Sized
{
/// Persist the given ['ChannelManager'] to disk, returning an error if persistence failed.
/// Persist the given ['ChannelManager'] to disk with the name "manager", returning an error if persistence failed.
fn persist_manager(&self, channel_manager: &ChannelManager<Signer, M, T, K, F, L>) -> Result<(), io::Error> {
self.persist("manager", channel_manager)
}

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

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

0 comments on commit f43c10b

Please sign in to comment.