pjfanning commented on issue #621:
URL: https://github.com/apache/pekko-http/issues/621#issuecomment-2421900710

   > No, it's a user error here.
   > 
   > You have to be very careful about what you do in `App` classes (even in 
Scala 2) and that has become more so in Scala 3 (known issue).
   > 
   > That you reinstate the whole service for each request, is also kind of a 
user error which you can fix by instantiating the HelloService once, extract 
the route and pass it into the server binding. It would be even better not to 
compose routes in the main App.
   
   I have changed that sample (main branch) to do the instantiation once and it 
works fine. I'll close this.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org
For additional commands, e-mail: notifications-h...@pekko.apache.org

Reply via email to