Skip to content

Commit

Permalink
GH #131: Do not cache version twice
Browse files Browse the repository at this point in the history
  • Loading branch information
rtar committed Dec 28, 2020
1 parent 5bc8b1d commit 41369fc
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ object CassandraModule {
// `syncSession` is `keyspaceSession` if `autoCreate` was disabled,
// no need to reconnect
unsafeSession <- if (keyspace.autoCreate) keyspaceSession else Resource.liftF(syncSession.pure[F])
plainSession <- SafeSession.of(unsafeSession)
_session <- plainSession.cachePrepared
_session <- SafeSession.of(unsafeSession)
_healthCheck <- CassandraHealthCheckOf(unsafeSession, config)
} yield new CassandraModule[F] {
def session = _session
Expand Down

0 comments on commit 41369fc

Please sign in to comment.