You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Zebra uses tokio::sync::watch::Sender, we sometimes need an extra value field, because Tokio version 0.3.6, doesn't have a watch::Sender::borrow method.
That method is available on Tokio 1.0.0, so once we update to the newer version we can remove that field and replace its usage with *self.sender.borrow().
teor2345
changed the title
Refactor zebra_state::service::BestTipHeight once our Tokio dependency is updated
Remove redundant watch values once our Tokio dependency is updated
Aug 26, 2021
Motivation
When Zebra uses
tokio::sync::watch::Sender
, we sometimes need an extravalue
field, because Tokio version 0.3.6, doesn't have awatch::Sender::borrow
method.That method is available on Tokio 1.0.0, so once we update to the newer version we can remove that field and replace its usage with
*self.sender.borrow()
.Impacted types:
ChainTipSender
RecentSyncLengths
Related Work
#2200 tracks updating the Tokio dependency.
The text was updated successfully, but these errors were encountered: