profanity icon indicating copy to clipboard operation
profanity copied to clipboard

Replace `call_external`'s implementation with an async one

Open techmetx11 opened this issue 1 year ago • 7 comments

The original call_external is kept as call_external_sync

Fixes #1759

techmetx11 avatar Sep 26 '22 12:09 techmetx11

I don't quite see where call_external_sync() is used/needed now?

jubalh avatar Sep 26 '22 12:09 jubalh

Me neither, I left it there for compatibility, but maybe it'll be better if I remove it

techmetx11 avatar Sep 26 '22 12:09 techmetx11

We are no library :) So don't need to worry about compatibility in the regard of not renaming/removing functions.

I'll have to check the code later. Did you test if all the situations that use this function now still work?

jubalh avatar Sep 26 '22 13:09 jubalh

We are no library :) So don't need to worry about compatibility in the regard of not renaming/removing functions.

I'll have to check the code later. Did you test if all the situations that use this function now still work?

I've only tested it with /url open right now

techmetx11 avatar Sep 26 '22 13:09 techmetx11

If all the functions that use call_external work you can actually remove call_external_sync, no need to keep it.

I removed it now :3

techmetx11 avatar Sep 26 '22 17:09 techmetx11

Did you also test the functionality which calls this function?

And since it's now two commits about one change you can squash it into one.

jubalh avatar Sep 26 '22 21:09 jubalh

Did you also test the functionality which calls this function?

And since it's now two commits about one change you can squash it into one.

I've tried it out with /avatar open, /url open (both HTTP and AESGCM) and /url save I'll squash it

techmetx11 avatar Sep 26 '22 21:09 techmetx11

Thanks for your contribution @techmetx11 !

jubalh avatar Oct 12 '22 10:10 jubalh