From 8307d4f6c8a8ecc20a9dbc4a8cbfb8f7f292b03b Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Mon, 6 Mar 2023 08:23:14 -0500 Subject: [PATCH] cargo fmt --- substrate/tendermint/client/src/validators.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/substrate/tendermint/client/src/validators.rs b/substrate/tendermint/client/src/validators.rs index c38b2f29..9bd0b338 100644 --- a/substrate/tendermint/client/src/validators.rs +++ b/substrate/tendermint/client/src/validators.rs @@ -59,7 +59,9 @@ impl Refresh { // If the session has changed, re-create the struct with the data on it fn refresh(&self) { let session = self._refresh.read().unwrap().session; - if session != self.client.runtime_api().current_session(self.client.info().finalized_hash).unwrap() { + if session != + self.client.runtime_api().current_session(self.client.info().finalized_hash).unwrap() + { *self._refresh.write().unwrap() = TendermintValidatorsStruct::from_module::(&self.client); } }