paritytech / polkadot-sdk

The Parity Polkadot Blockchain SDK
https://polkadot.com/
1.92k stars 708 forks source link

rpc server: fix subscription id_provider being reset to default one. #6588

Closed TarekkMA closed 1 hour ago

TarekkMA commented 4 days ago

Description

The PR ensures that the id_provider variable is cloned instead of taken, which can help prevent issues related id provider being reset to the default.

In a test in moonbeam we found that the id_provider is being reset somehow and changed to the default one. Changing .take() to .clone() would fix the issue.

Checklist

niklasad1 commented 6 hours ago

@TarekkMA just remove mut here then it should good to go