internal: remove package-level init with fastlyABIInit()#35
internal: remove package-level init with fastlyABIInit()#35
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.