Skip to content

Commit ff5fc62

Browse files
authored
fix: Make Wazero the lens runtime for C bindings (#4524)
## Relevant issue(s) Resolves #4523 ## Description A recent change removed a line of code that made the C Bindings' `NewNode` function explicitly use Wazero as its lens runtime. This broke the C bindings, because that is currently the only runtime that is supported. This reverts that change. ## Tasks - [x] I made sure the code is well commented, particularly hard-to-understand areas. - [x] I made sure the repository-held documentation is changed accordingly. - [x] I made sure the pull request title adheres to the conventional commit style (the subset used in the project can be found in [tools/configs/chglog/config.yml](tools/configs/chglog/config.yml)). - [x] I made sure to discuss its limitations such as threats to validity, vulnerability to mistake and misuse, robustness to invalidation of assumptions, resource requirements, ... ## How has this been tested? Specify the platform(s) on which this was tested: - WSL
1 parent da33729 commit ff5fc62

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cbindings/node.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ func NewNode(cOptions C.NodeInitOptions) C.NewNodeResult {
3939
ctx := context.Background()
4040

4141
opts := options.Node()
42-
opts.DB().SetLensRuntime(options.NodeWASMLensRuntime)
42+
// Currently the only supported lens runtime is wazero, so use it explicitly
43+
opts.DB().SetLensRuntime("wazero")
4344

4445
if gocOptions.DbPath != "" {
4546
opts.Store().SetPath(gocOptions.DbPath)

0 commit comments

Comments
 (0)