mirror of
https://github.com/status-im/migrate.git
synced 2025-02-23 16:28:08 +00:00
Rename Cassandra's WithSession to WithInstance
This commit is contained in:
parent
bbd8f410d9
commit
8b0f876416
@ -36,11 +36,11 @@ type Cassandra struct {
|
||||
session *gocql.Session
|
||||
isLocked bool
|
||||
|
||||
// Open and WithSession need to guarantee that config is never nil
|
||||
// Open and WithInstance need to guarantee that config is never nil
|
||||
config *Config
|
||||
}
|
||||
|
||||
func WithSession(session *gocql.Session, config *Config) (database.Driver, error) {
|
||||
func WithInstance(session *gocql.Session, config *Config) (database.Driver, error) {
|
||||
if config == nil {
|
||||
return nil, ErrNilConfig
|
||||
} else if isClosed := session.Closed(); isClosed {
|
||||
|
Loading…
x
Reference in New Issue
Block a user