Skip to content

Commit

Permalink
Sync backend can be closeable (#2240)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamw authored Jul 27, 2024
1 parent 0f27968 commit 74a8bd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/sttp/client4/backend.scala
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ trait GenericBackend[F[_], +P] {
trait Backend[F[_]] extends GenericBackend[F, Any]

/** A [[GenericBackend]] which is synchronous (side effects are run directly), and doesn't support any capabilities. */
trait SyncBackend extends Backend[Identity] {
trait SyncBackend extends Backend[Identity] with AutoCloseable {
override def monad: MonadError[Identity] = IdentityMonad
}

Expand Down

0 comments on commit 74a8bd9

Please sign in to comment.