Hi

I have a hard time figuring out why the types will not align when using 
future directives onSuccess method.

There is a gist created here that contains the code:
https://gist.github.com/magnusart/a3b9321d6e391889d59a

I've mucked around but cannot get the types to completely match up. I 
either get this:

found: akka.http.scaladsl.server.RequestContext => 
> scala.concurrent.Future[akka.http.scaladsl.server.RouteResult] 

required: scala.concurrent.Future[akka.http.scaladsl.server.RouteResult]

 
Or if I change things around I get: 

found: scala.concurrent.Future[akka.http.scaladsl.server.RouteResult] 

  required: akka.http.scaladsl.server.RequestContext => 
> scala.concurrent.Future[akka.http.scaladsl.server.RouteResult] 


I did find a recent issue around this error 
<https://github.com/akka/akka/issues/17754> but there it was resolved in a 
way that I cannot apply.

If there is a type alignment guru, please help with how I should align the 
types, I would have expected this to be fairly easy.
/Magnus

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to