Removed futures from controller (#33)#139
Conversation
|
Report: Report: api - scala:2.12.17
|
dk1844
left a comment
There was a problem hiding this comment.
LGTM in terms of complying with the task of removing the future.
I am thinking if we ever need to introduce futures for specific reasons, if this poses a problem -- I assume we can block/await for those or create specific endpoints.
Having futures in IO/web appcode always seemed natural, but I am willing to give this a try and see where it leads us.
| {"key": "ZYXWVUT9876"}, | ||
| ]""") | ||
| keys: List[PublicKey] | ||
| ) extends AnyVal |
There was a problem hiding this comment.
what is the point of removing AnyVal here?
There was a problem hiding this comment.
For some reason, having the anyVal had the json be encoded as "BASE64ENCODEDSTRING" instead of {"key":"BASE64ENCODEDSTRING"} and creating an issue when a Future is not being used.
I agree with this but I think in our case it may be redundant because our service and authentication layer isn't using If we want to reimplement futures, it would probably be a bigger task of rewriting our services and authentication modules to be asynchronous. |
Release Notes:
closes: #33