-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to call liveZIO
?
#388
Comments
Scope is provided by default by the runtime of ZIO 2.x Which version of zio are you using ? Can you please provide the full snippet of code for your example ? 👇 i think there is a mistake in the current implementation, i need to remove the constraints for def liveZIO[R](
region: Region,
provider: RIO[R with Scope, AwsCredentialsProvider],
uriEndpoint: Option[URI] = None
): ZLayer[R, S3Exception, S3] = ???
|
How to use it, with default provider https://github.com/zio/zio-s3/blob/series/2.x/zio-s3/src/test/scala/zio/s3/S3Test.scala#L44 val s3: ZLayer[Scope, S3Exception, S3] =
zio.s3.liveZIO(Region.EU_CENTRAL_1, zio.s3.providers.default)
|
This is more of a question than an issue.
The docs show us the following way of building credentials:
However, this doesn't result in a
Layer[S3Exception, S3]
, it returns aZLayer[zio.Scope, S3Exception, S3]
I get the following error, for example:
What should I do? Call
liveZIO[Any]
(which is the only thing I can think of that let's me compile this code)? What do I need to provide here?The text was updated successfully, but these errors were encountered: