mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 13:07:56 +00:00
Use NativeWhenPossible for offchain worker. (#2126)
This commit is contained in:
@@ -39,6 +39,7 @@ arg_enum! {
|
||||
Wasm,
|
||||
Both,
|
||||
NativeElseWasm,
|
||||
NativeWhenPossible,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,6 +50,7 @@ impl Into<client::ExecutionStrategy> for ExecutionStrategy {
|
||||
ExecutionStrategy::Wasm => client::ExecutionStrategy::AlwaysWasm,
|
||||
ExecutionStrategy::Both => client::ExecutionStrategy::Both,
|
||||
ExecutionStrategy::NativeElseWasm => client::ExecutionStrategy::NativeElseWasm,
|
||||
ExecutionStrategy::NativeWhenPossible => client::ExecutionStrategy::NativeWhenPossible,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -261,7 +263,7 @@ pub struct ExecutionStrategies {
|
||||
raw(
|
||||
possible_values = "&ExecutionStrategy::variants()",
|
||||
case_insensitive = "true",
|
||||
default_value = r#""NativeElseWasm""#
|
||||
default_value = r#""NativeWhenPossible""#
|
||||
)
|
||||
)]
|
||||
pub offchain_worker_execution: ExecutionStrategy,
|
||||
|
||||
Reference in New Issue
Block a user