Skip to content

Commit

Permalink
Fix compilation issues after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
rtar committed Jan 24, 2024
1 parent 10c7a40 commit 1d0e920
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import cats.{Monad, MonadThrow, Parallel}
import com.evolutiongaming.catshelper.LogOf
import com.evolutiongaming.kafka.journal._
import com.evolutiongaming.kafka.journal.eventual.EventualPayloadAndType
import com.evolutiongaming.kafka.journal.eventual.cassandra.EventualCassandraConfig.ConsistencyConfig
import com.evolutiongaming.scassandra.CassandraClusterOf

import java.time.Instant
Expand All @@ -34,7 +33,7 @@ object SnapshotCassandra {
def of[F[_]: Temporal: Parallel: CassandraCluster: CassandraSession: LogOf](
schemaConfig: SchemaConfig,
origin: Option[Origin],
consistencyConfig: ConsistencyConfig,
consistencyConfig: CassandraConsistencyConfig,
numberOfSnapshots: Int
): F[SnapshotStoreFlat[F]] =
for {
Expand Down Expand Up @@ -158,7 +157,7 @@ object SnapshotCassandra {
)

object Statements {
def of[F[_]: Monad: CassandraSession](schema: Schema, consistencyConfig: ConsistencyConfig): F[Statements[F]] = {
def of[F[_]: Monad: CassandraSession](schema: Schema, consistencyConfig: CassandraConsistencyConfig): F[Statements[F]] = {
for {
insertRecord <- SnapshotStatements.InsertRecord.of[F](schema.snapshot, consistencyConfig.write)
updateRecord <- SnapshotStatements.UpdateRecord.of[F](schema.snapshot, consistencyConfig.write)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ final case class SnapshotCassandraConfig(
query = QueryConfig(consistency = ConsistencyLevel.LOCAL_QUORUM, fetchSize = 1000, defaultIdempotence = true)
),
schema: SchemaConfig = SchemaConfig.default,
consistencyConfig: EventualCassandraConfig.ConsistencyConfig = EventualCassandraConfig.ConsistencyConfig.default
consistencyConfig: CassandraConsistencyConfig = CassandraConsistencyConfig.default
)

object SnapshotCassandraConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import com.datastax.driver.core.Row
import com.evolutiongaming.kafka.journal._
import com.evolutiongaming.kafka.journal.eventual.EventualPayloadAndType
import com.evolutiongaming.kafka.journal.eventual.cassandra.CassandraHelper._
import com.evolutiongaming.kafka.journal.eventual.cassandra.EventualCassandraConfig.ConsistencyConfig
import com.evolutiongaming.scassandra.syntax._
import com.evolutiongaming.scassandra.{DecodeByName, EncodeByName, TableName}
import scodec.bits.ByteVector
Expand Down Expand Up @@ -41,7 +40,7 @@ object SnapshotStatements {

def of[F[_]: Monad: CassandraSession](
name: TableName,
consistencyConfig: ConsistencyConfig.Write
consistencyConfig: CassandraConsistencyConfig.Write
): F[InsertRecord[F]] = {

implicit val encodeByNameByteVector: EncodeByName[ByteVector] =
Expand Down Expand Up @@ -107,7 +106,7 @@ object SnapshotStatements {

def of[F[_]: Monad: CassandraSession](
name: TableName,
consistencyConfig: ConsistencyConfig.Write
consistencyConfig: CassandraConsistencyConfig.Write
): F[UpdateRecord[F]] = {

implicit val encodeByNameByteVector: EncodeByName[ByteVector] =
Expand Down Expand Up @@ -168,7 +167,7 @@ object SnapshotStatements {

def of[F[_]: Monad: CassandraSession](
name: TableName,
consistencyConfig: ConsistencyConfig.Read
consistencyConfig: CassandraConsistencyConfig.Read
): F[SelectMetadata[F]] = {

val query =
Expand Down Expand Up @@ -213,7 +212,7 @@ object SnapshotStatements {

def of[F[_]: Monad: CassandraSession](
name: TableName,
consistencyConfig: ConsistencyConfig.Read
consistencyConfig: CassandraConsistencyConfig.Read
): F[SelectRecord[F]] = {

implicit val decodeByNameByteVector: DecodeByName[ByteVector] =
Expand Down Expand Up @@ -282,7 +281,7 @@ object SnapshotStatements {

object Delete {

def of[F[_]: Monad: CassandraSession](name: TableName, consistencyConfig: ConsistencyConfig.Write): F[Delete[F]] = {
def of[F[_]: Monad: CassandraSession](name: TableName, consistencyConfig: CassandraConsistencyConfig.Write): F[Delete[F]] = {

val query =
s"""
Expand Down

0 comments on commit 1d0e920

Please sign in to comment.