Skip to content

Commit

Permalink
undo unwrap change in engine init
Browse files Browse the repository at this point in the history
  • Loading branch information
arussellsaw committed Oct 29, 2024
1 parent 61b6b31 commit cf1ac16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flipt-engine-ffi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ pub unsafe extern "C" fn initialize_engine(

let engine_opts_bytes = CStr::from_ptr(opts).to_bytes();
let bytes_str_repr = std::str::from_utf8(engine_opts_bytes).unwrap();
let engine_opts: EngineOpts = serde_json::from_str(bytes_str_repr).unwrap();
let engine_opts: EngineOpts = serde_json::from_str(bytes_str_repr).unwrap_or_default();

let http_url = engine_opts
.url
Expand Down

0 comments on commit cf1ac16

Please sign in to comment.