zero-to-production icon indicating copy to clipboard operation
zero-to-production copied to clipboard

Chapter 7.3.8.1 : Unnecessary async modifier

Open 9SMTM6 opened this issue 2 years ago • 1 comments

The build function in that chapter has an async modifier, but doesnt use await. This also caused compilation issues for me, but that might just be me, removing the modifier solved them without issue.

9SMTM6 avatar Sep 14 '23 16:09 9SMTM6

Same for me, if you remove the async you need to also remove the await from the calls in main and test/api/helpers

so

let application = Application::build(configuration).await?; 
// should become
let application = Application::build(configuration)?; 

juanmaia avatar Apr 26 '24 10:04 juanmaia