mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
cargo fmt
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user