mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-08 21:48:02 +00:00
Move import lock onto backend (#2797)
* Drop import_lock from client, move it into backend, impl default version via static mutex * still need to allow depcretion because of client.backend * additional docs * Remove default impl of get_import_lock, impl on instances * Bump parking_lot to 0.8.0 accross the board
This commit is contained in:
committed by
Bastian Köcher
parent
4f888f34d3
commit
eaa0ab014a
@@ -16,7 +16,7 @@ ctrlc = { version = "3.0", features = ["termination"] }
|
||||
log = "0.4"
|
||||
tokio = "0.1"
|
||||
exit-future = "0.1"
|
||||
parking_lot = "0.7.1"
|
||||
parking_lot = "0.8.0"
|
||||
parity-codec = "3.3"
|
||||
trie-root = "0.12.2"
|
||||
sr-io = { path = "../core/sr-io" }
|
||||
|
||||
@@ -129,10 +129,7 @@ construct_service_factory! {
|
||||
SelectChain = LongestChain<FullBackend<Self>, Self::Block>
|
||||
{ |config: &FactoryFullConfiguration<Self>, client: Arc<FullClient<Self>>| {
|
||||
#[allow(deprecated)]
|
||||
Ok(LongestChain::new(
|
||||
client.backend().clone(),
|
||||
client.import_lock()
|
||||
))
|
||||
Ok(LongestChain::new(client.backend().clone()))
|
||||
}
|
||||
},
|
||||
FinalityProofProvider = { |_client: Arc<FullClient<Self>>| {
|
||||
|
||||
Reference in New Issue
Block a user