You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for sharing realistic examples of ZIO usage!
I have a couple suggestions:
SQSClient.instantiate calls AWS API which could throw an exception, so it would be better to wrap this code inside Task { }
in Main, the whole ZIO.environment[AppEnvironment].flatMap { _ => seems unnecessary, since you're not using the environment. messageSentConsumer already has the constraint of providing an AppEnvironment so you don't need to add this.
The text was updated successfully, but these errors were encountered:
Thanks for sharing realistic examples of ZIO usage!
I have a couple suggestions:
SQSClient.instantiate
calls AWS API which could throw an exception, so it would be better to wrap this code insideTask { }
Main
, the wholeZIO.environment[AppEnvironment].flatMap { _ =>
seems unnecessary, since you're not using the environment.messageSentConsumer
already has the constraint of providing anAppEnvironment
so you don't need to add this.The text was updated successfully, but these errors were encountered: