Skip to content

Commit

Permalink
Use collection interface only
Browse files Browse the repository at this point in the history
  • Loading branch information
akyoto committed Nov 1, 2017
1 parent 0fa044c commit a9d5796
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions SessionStoreNano.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (

// SessionStoreNano is a store saving sessions in a nano database.
type SessionStoreNano struct {
db *nano.Database
collection *nano.Collection
}

Expand All @@ -21,10 +20,9 @@ type interfaceStruct struct {
}

// New creates a session store using an Aerospike database.
func New(db *nano.Database, collectionName string) *SessionStoreNano {
func New(collection *nano.Collection) *SessionStoreNano {
return &SessionStoreNano{
db: db,
collection: db.Collection(collectionName),
collection: collection,
}
}

Expand Down

0 comments on commit a9d5796

Please sign in to comment.