Skip to content

Commit

Permalink
Removes Usages Of ZIO.succeedNow (#401)
Browse files Browse the repository at this point in the history
* remove usages of zio succeed now

* update read me
  • Loading branch information
adamgfraser committed Feb 12, 2023
1 parent 05ab72c commit bb8f158
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -40,7 +40,7 @@ All available s3 combinators and operations are available in the package object
In order to use this library, we need to add the following line in our `build.sbt` file:

```scala
libraryDependencies += "dev.zio" %% "zio-s3" % "0.4.2.1"
libraryDependencies += "dev.zio" %% "zio-s3" % "0.4.2.3"
```

## Example 1
Expand Down
2 changes: 1 addition & 1 deletion zio-s3/src/main/scala/zio/s3/providers.scala
Expand Up @@ -7,7 +7,7 @@ import zio.s3.errors._
object providers {

def const(credential: AwsCredentials): UIO[AwsCredentialsProvider] =
ZIO.succeedNow[AwsCredentialsProvider](() => credential)
ZIO.succeed[AwsCredentialsProvider](() => credential)

def basic(accessKeyId: String, secretAccessKey: String): UIO[AwsCredentialsProvider] =
const(AwsBasicCredentials.create(accessKeyId, secretAccessKey))
Expand Down

0 comments on commit bb8f158

Please sign in to comment.