Skip to content

Commit

Permalink
make more codec instances private
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-alfers committed Jan 31, 2024
1 parent 342c45d commit 6410fc8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
package akka.persistence.r2dbc.internal.sqlserver

import java.time.Instant
import java.time.LocalDateTime
import java.time.ZoneId
import java.util.Date.UTC

import scala.concurrent.ExecutionContext
import scala.concurrent.Future
Expand All @@ -19,7 +16,6 @@ import akka.annotation.InternalApi
import akka.persistence.r2dbc.R2dbcSettings
import akka.persistence.r2dbc.internal.InstantFactory
import akka.persistence.r2dbc.internal.Sql.Interpolation
import akka.persistence.r2dbc.internal.codec.TimestampCodec.SqlServerTimestampCodec
import akka.persistence.r2dbc.internal.codec.TimestampCodec.TimestampCodecRichStatement
import akka.persistence.r2dbc.internal.postgres.PostgresQueryDao
import io.r2dbc.spi.ConnectionFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class PersistTagsSpec

override def typedSystem: ActorSystem[_] = system
private val settings = R2dbcSettings(system.settings.config.getConfig("akka.persistence.r2dbc"))
implicit val tagsCodec: TagsCodec = settings.tagsCodec
private implicit val tagsCodec: TagsCodec = settings.tagsCodec
case class Row(pid: String, seqNr: Long, tags: Set[String])

"Persist tags" should {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import org.slf4j.LoggerFactory
logDbCallsExceeding: FiniteDuration,
closeCallsExceeding: Option[FiniteDuration])(implicit ec: ExecutionContext, system: ActorSystem[_]) {
import MigrationToolDao._
implicit val queryAdapter: QueryAdapter = IdentityAdapter
private implicit val queryAdapter: QueryAdapter = IdentityAdapter
private val r2dbcExecutor =
new R2dbcExecutor(connectionFactory, log, logDbCallsExceeding, closeCallsExceeding)(ec, system)

Expand Down

0 comments on commit 6410fc8

Please sign in to comment.