Skip to content

Commit 04d8d6e

Browse files
committed
fix some rebase noise
1 parent 7b4889e commit 04d8d6e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lightning/src/util/persist.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,6 @@ pub trait Persister<'a, M: Deref, T: Deref, ES: Deref, NS: Deref, SP: Deref, F:
104104
}
105105

106106

107-
impl<'a, A: KVStore, M: Deref, T: Deref, ES: Deref, NS: Deref, SP: Deref, F: Deref, R: Deref, L: Deref, S: WriteableScore<'a>> Persister<'a, M, T, ES, NS, SP, F, R, L, S> for A
108-
109107
impl<'a, A: KVStore, M: Deref, T: Deref, ES: Deref, NS: Deref, SP: Deref, F: Deref, R: Deref, L: Deref, S: WriteableScore<'a>> Persister<'a, M, T, ES, NS, SP, F, R, L, S> for A
110108
where M::Target: 'static + chain::Watch<<SP::Target as SignerProvider>::Signer>,
111109
T::Target: 'static + BroadcasterInterface,
@@ -116,25 +114,19 @@ impl<'a, A: KVStore, M: Deref, T: Deref, ES: Deref, NS: Deref, SP: Deref, F: Der
116114
R::Target: 'static + Router,
117115
L::Target: 'static + Logger,
118116
{
119-
/// Persist the given ['ChannelManager'] to disk, returning an error if persistence failed.
120117
/// Persist the given ['ChannelManager'] to disk, returning an error if persistence failed.
121118
fn persist_manager(&self, channel_manager: &ChannelManager<M, T, ES, NS, SP, F, R, L>) -> Result<(), io::Error> {
122119
self.write(CHANNEL_MANAGER_PERSISTENCE_NAMESPACE, CHANNEL_MANAGER_PERSISTENCE_KEY, &channel_manager.encode())
123-
self.write(CHANNEL_MANAGER_PERSISTENCE_NAMESPACE, CHANNEL_MANAGER_PERSISTENCE_KEY, &channel_manager.encode())
124120
}
125121

126-
/// Persist the given [`NetworkGraph`] to disk, returning an error if persistence failed.
127122
/// Persist the given [`NetworkGraph`] to disk, returning an error if persistence failed.
128123
fn persist_graph(&self, network_graph: &NetworkGraph<L>) -> Result<(), io::Error> {
129124
self.write(NETWORK_GRAPH_PERSISTENCE_NAMESPACE, NETWORK_GRAPH_PERSISTENCE_KEY, &network_graph.encode())
130-
self.write(NETWORK_GRAPH_PERSISTENCE_NAMESPACE, NETWORK_GRAPH_PERSISTENCE_KEY, &network_graph.encode())
131125
}
132126

133-
/// Persist the given [`WriteableScore`] to disk, returning an error if persistence failed.
134127
/// Persist the given [`WriteableScore`] to disk, returning an error if persistence failed.
135128
fn persist_scorer(&self, scorer: &S) -> Result<(), io::Error> {
136129
self.write(SCORER_PERSISTENCE_NAMESPACE, SCORER_PERSISTENCE_KEY, &scorer.encode())
137-
self.write(SCORER_PERSISTENCE_NAMESPACE, SCORER_PERSISTENCE_KEY, &scorer.encode())
138130
}
139131
}
140132

0 commit comments

Comments
 (0)