Skip to content

Commit

Permalink
Improve Scala 3 code
Browse files Browse the repository at this point in the history
  • Loading branch information
geirolz committed Jan 4, 2024
1 parent 30f3faa commit 839fc3b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/src/main/scala-3/fly4s/core/data/Fly4sConfig.scala
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ case class Fly4sConfig(
skipDefaultCallbacks: Boolean = defaultSkipDefaultCallbacks,
skipDefaultResolvers: Boolean = defaultSkipDefaultResolvers
) extends Fly4sConfigContract
object Fly4sConfig extends Fly4sConfigBuilder {
object Fly4sConfig extends Fly4sConfigBuilder:

implicit class Fly4sConfigFluentConfigOps(i: Fly4sConfig) {
extension(i: Fly4sConfig)
def withConnectRetries(connectRetries: Int): Fly4sConfig =
i.copy(connectRetries = connectRetries)

Expand Down Expand Up @@ -162,5 +162,3 @@ object Fly4sConfig extends Fly4sConfigBuilder {

def withSkipDefaultResolvers(skipDefaultResolvers: Boolean): Fly4sConfig =
i.copy(skipDefaultResolvers = skipDefaultResolvers)
}
}

0 comments on commit 839fc3b

Please sign in to comment.