-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
internal: remove package-level init with fastlyABIInit() #35
base: main
Are you sure you want to change the base?
Conversation
Just need to figure out where to put this for people who want to call it. Maybe at the top-level |
We were ignoring the return value anyway and it complicates wizer integration.
797c52d
to
e8d19a9
Compare
What purpose does the call serve? What're the implications of not calling it? |
The call allows an app to say "I'm using this version of the ABI" and verify that the wasm runtime supports it. However, it is purely advisory and the return value ("Sounds Good" / "I'm sorry I don't support that version") was ignored anyway. |
What's the right thing to do if we don't support the version? Panic? If so, we could maybe put it into the |
I'd possibly also write to stderr so that something appears in |
Can we just move this into handle.go:Serve(), before we create the ClientRequest? |
There are code entries that could be called before |
Ah, yes, you are right. I still think this should happen automatically (and not something the end user should care about) but I'm not sure how to achieve that outside init or adding the extra check in all the possible entrypoints. |
We were ignoring the return value anyway and it complicates wizer integration.