Skip to content

Commit

Permalink
fix: metadata is not thread safe and has internal state
Browse files Browse the repository at this point in the history
  • Loading branch information
ValdemarGr committed Feb 12, 2024
1 parent d00b461 commit 61e1719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/main/scala/spice4s/client/SpiceClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ object SpiceClient {
val METADATA_KEY = Metadata.Key.of(AUTHORIZATION, Metadata.ASCII_STRING_MARSHALLER)

def fromChannel[F[_]: Async](channel: Channel, token: String): Resource[F, SpiceClient[F]] = {
val metadata = {
def metadata = {
val m = new Metadata()
m.put(METADATA_KEY, s"Bearer ${token}")
m
Expand Down

0 comments on commit 61e1719

Please sign in to comment.