Update to jsonrpsee 0.7 and impl Stream on TransactionProgress (#380)

* Update to jsonrpsee 0.7 and impl Stream on TransactionProgress

* Fix doc links after rename to next_item

* Add another doc comment
This commit is contained in:
James Wilson
2022-01-04 15:05:53 +00:00
committed by GitHub
parent 3fb4c7089a
commit 26258c84cc
8 changed files with 126 additions and 100 deletions
+5 -5
View File
@@ -14,9 +14,9 @@
// You should have received a copy of the GNU General Public License
// along with subxt. If not, see <http://www.gnu.org/licenses/>.
use jsonrpsee::types::{
use jsonrpsee::core::{
client::Subscription,
DeserializeOwned,
Subscription,
};
use sp_core::{
storage::{
@@ -247,12 +247,12 @@ where
T: DeserializeOwned,
{
match sub.next().await {
Ok(Some(next)) => Some(next),
Ok(None) => None,
Err(e) => {
Some(Ok(next)) => Some(next),
Some(Err(e)) => {
log::error!("Subscription {} failed: {:?} dropping", sub_name, e);
None
}
None => None,
}
}