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); } }