mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-26 20:46:05 +00:00
cargo fmt
This commit is contained in:
parent
db1fefe7c1
commit
8307d4f6c8
1 changed files with 3 additions and 1 deletions
|
@ -59,7 +59,9 @@ impl<T: TendermintClient> Refresh<T> {
|
||||||
// If the session has changed, re-create the struct with the data on it
|
// If the session has changed, re-create the struct with the data on it
|
||||||
fn refresh(&self) {
|
fn refresh(&self) {
|
||||||
let session = self._refresh.read().unwrap().session;
|
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::<T>(&self.client);
|
*self._refresh.write().unwrap() = TendermintValidatorsStruct::from_module::<T>(&self.client);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue