Skip to content

Commit

Permalink
Make authentication the last parameter, give it default value
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-vovk committed Nov 6, 2024
1 parent abd824c commit 90e4ec3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ object Authentication {
case class CommonRequestOptions(
timeout: Duration,
masterNodeTimeout: Duration,
authentication: Authentication,
headers: Map[String, String] = Map.empty
headers: Map[String, String] = Map.empty,
authentication: Authentication = Authentication.NoAuth,
)

object CommonRequestOptions {
implicit val defaults: CommonRequestOptions = CommonRequestOptions(
timeout = 0.seconds,
masterNodeTimeout = 0.seconds,
headers = Map.empty,
authentication = Authentication.NoAuth,
headers = Map.empty
)
}

0 comments on commit 90e4ec3

Please sign in to comment.