Skip to content

Commit

Permalink
BDOG-1512 Move implict ErrorTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-lamed committed Feb 17, 2022
1 parent b55b6b9 commit 60c61ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,10 @@ trait HttpErrorFunctions {
object HttpErrorFunctions extends HttpErrorFunctions

case class ErrorTimeout(
toDuration: Duration = 10.seconds
toDuration: Duration
) extends AnyVal

object ErrorTimeout {
implicit val errorTimeout: ErrorTimeout =
ErrorTimeout(10.seconds)
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ package object client
}

trait StreamHttpReadsInstances {
// default may be overridden if required
implicit val errorTimeout: ErrorTimeout =
ErrorTimeout()

def tag[A](instance: A): A with client.Streaming =
instance.asInstanceOf[A with client.Streaming]

Expand Down

0 comments on commit 60c61ab

Please sign in to comment.