Skip to content

Commit

Permalink
Update pkg/cassandra/config/config.go
Browse files Browse the repository at this point in the history
Co-authored-by: Yuri Shkuro <[email protected]>
Signed-off-by: Alok Kumar Singh <[email protected]>
  • Loading branch information
akstron and yurishkuro authored Nov 26, 2024
1 parent 73d276a commit 57349a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/cassandra/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ func createSession(c *Configuration) (cassandra.Session, error) {
}

// newSessionPrerequisites creates tables and types before creating a session
func newSessionPrerequisites(c Configuration) error {
func (c *Configuration) newSessionPrerequisites() error {
cfg := *c // clone because we need to connect without specifying a keyspace
cfg.Schema.Keyspace = ""
if !c.Schema.CreateSchema {
return nil
}
Expand Down

0 comments on commit 57349a8

Please sign in to comment.