@@ -208,7 +208,7 @@ WasmBase::WasmBase(const std::shared_ptr<WasmHandleBase> &base_wasm_handle, Wasm
208
208
wasm_vm_ = factory ();
209
209
}
210
210
if (!wasm_vm_) {
211
- failed_ = FailState::UnableToCreateVM ;
211
+ failed_ = FailState::UnableToCreateVm ;
212
212
} else {
213
213
wasm_vm_->setFailCallback ([this ](FailState fail_state) { failed_ = fail_state; });
214
214
}
@@ -222,7 +222,7 @@ WasmBase::WasmBase(std::unique_ptr<WasmVm> wasm_vm, std::string_view vm_id,
222
222
envs_(envs), allowed_capabilities_(std::move(allowed_capabilities)),
223
223
vm_configuration_(std::string(vm_configuration)), vm_id_handle_(getVmIdHandle(vm_id)) {
224
224
if (!wasm_vm_) {
225
- failed_ = FailState::UnableToCreateVM ;
225
+ failed_ = FailState::UnableToCreateVm ;
226
226
} else {
227
227
wasm_vm_->setFailCallback ([this ](FailState fail_state) { failed_ = fail_state; });
228
228
}
@@ -502,7 +502,7 @@ std::shared_ptr<WasmHandleBase> createWasm(std::string vm_key, std::string code,
502
502
}
503
503
auto configuration_canary_handle = clone_factory (wasm_handle);
504
504
if (!configuration_canary_handle) {
505
- wasm_handle->wasm ()->fail (FailState::UnableToCloneVM , " Failed to clone Base Wasm" );
505
+ wasm_handle->wasm ()->fail (FailState::UnableToCloneVm , " Failed to clone Base Wasm" );
506
506
return nullptr ;
507
507
}
508
508
if (!configuration_canary_handle->wasm ()->initialize ()) {
@@ -552,7 +552,7 @@ getOrCreateThreadLocalWasm(std::shared_ptr<WasmHandleBase> base_handle,
552
552
// Create and initialize new thread-local WasmVM.
553
553
auto wasm_handle = clone_factory (base_handle);
554
554
if (!wasm_handle) {
555
- base_handle->wasm ()->fail (FailState::UnableToCloneVM , " Failed to clone Base Wasm" );
555
+ base_handle->wasm ()->fail (FailState::UnableToCloneVm , " Failed to clone Base Wasm" );
556
556
return nullptr ;
557
557
}
558
558
0 commit comments