ockam
ockam copied to clipboard
refactor(rust): make it easier to write commands' api req/res handlers
Add an abstraction layer on top of connect_to
to make it easier to write commands' api req/res handlers. It removes a lot of boilerplate around calling the background node and especially, around handling errors. This can prove especially helpful for new contributors.
@adrianbenavides I really like where you're going with this PR 👍
+1 Looks good to me! I just left some minor suggestions.
Thanks for all the comments! I've fixed all you pointed out in my last commit.
@Mergifyio refresh
refresh