Skip to content

Commit bfb4710

Browse files
committed
Scalafmt
1 parent 2575359 commit bfb4710

3 files changed

Lines changed: 22 additions & 11 deletions

File tree

http4s/src/main/scala/clue/http4s/Http4sHttpClient.scala

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ import org.http4s.client.Client
1515
import org.typelevel.log4cats.Logger
1616

1717
object Http4sHttpClient {
18-
def of[F[_]: {MonadThrow as F, Http4sHttpBackend as B, Logger as L}, S](uri: Uri, name: String = "", headers: Headers = Headers.empty): F[Http4sHttpClient[F, S]] = {
18+
def of[F[_]: {MonadThrow as F, Http4sHttpBackend as B, Logger as L}, S](
19+
uri: Uri,
20+
name: String = "",
21+
headers: Headers = Headers.empty
22+
): F[Http4sHttpClient[F, S]] = {
1923
val logPrefix = s"clue.FetchClientWithPars[${if (name.isEmpty) uri else name}]"
2024

2125
val internalLogger = L.withModifiedString(s => s"$logPrefix $s")
@@ -26,9 +30,9 @@ object Http4sHttpClient {
2630
}
2731

2832
def of[F[_]: {Concurrent as F, Logger as L}, S](
29-
uri: Uri,
30-
client: Client[F],
31-
name: String,
33+
uri: Uri,
34+
client: Client[F],
35+
name: String,
3236
headers: Headers
3337
): F[Http4sHttpClient[F, S]] = {
3438
val logPrefix = s"clue.FetchClientWithPars[${if (name.isEmpty) uri else name}]"
@@ -45,7 +49,11 @@ object Http4sHttpClient {
4549
def of[F[_]: Concurrent: Logger, S](uri: Uri, client: Client[F]): F[Http4sHttpClient[F, S]] =
4650
of[F, S](uri, client, "", Headers.empty)
4751

48-
def of[F[_]: Concurrent: Logger, S](uri: Uri, client: Client[F], name: String): F[Http4sHttpClient[F, S]] =
52+
def of[F[_]: Concurrent: Logger, S](
53+
uri: Uri,
54+
client: Client[F],
55+
name: String
56+
): F[Http4sHttpClient[F, S]] =
4957
of[F, S](uri, client, name, Headers.empty)
5058

5159
}

natchez/src/main/scala/clue/natchez/NatchezMiddleware.scala

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,10 @@ object http4s:
143143

144144
@scala.annotation.targetName("tracedWithFetchClient")
145145
def tracedWith(
146-
spanOptions: natchez.Span.Options,
147-
additionalAttributesF: (clue.model.GraphQLQuery, Option[io.circe.JsonObject]) => F[Seq[(String, natchez.TraceValue)]]
146+
spanOptions: natchez.Span.Options,
147+
additionalAttributesF: (clue.model.GraphQLQuery, Option[io.circe.JsonObject]) => F[
148+
Seq[(String, natchez.TraceValue)]
149+
]
148150
)(using
149151
cats.effect.MonadCancelThrow[F],
150152
natchez.Trace[F],
@@ -164,8 +166,10 @@ object http4s:
164166

165167
@scala.annotation.targetName("tracedWithStreamingClient")
166168
def tracedWith(
167-
spanOptions: natchez.Span.Options,
168-
additionalAttributesF: (clue.model.GraphQLQuery, Option[io.circe.JsonObject]) => F[Seq[(String, natchez.TraceValue)]]
169+
spanOptions: natchez.Span.Options,
170+
additionalAttributesF: (clue.model.GraphQLQuery, Option[io.circe.JsonObject]) => F[
171+
Seq[(String, natchez.TraceValue)]
172+
]
169173
)(using
170174
cats.effect.MonadCancelThrow[F],
171175
natchez.Trace[F],

otel4s/src/main/scala/clue/otel4s/Otel4sMiddleware.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,5 +224,4 @@ class Otel4sStreamingClient[F[_]: Tracer: MonadCancelThrow, S](
224224
(exitCase match
225225
case Resource.ExitCase.Errored(e) =>
226226
span.setStatus(StatusCode.Error, Option(e.getMessage).getOrElse(e.toString))
227-
case _ => Applicative[F].unit
228-
)
227+
case _ => Applicative[F].unit)

0 commit comments

Comments
 (0)