Fix nil issue with session cache
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ import (
|
|||||||
log "gitlab.com/gdulai/simpleloglvl"
|
log "gitlab.com/gdulai/simpleloglvl"
|
||||||
)
|
)
|
||||||
|
|
||||||
var sessions map[uuid.UUID]*Session
|
var sessions map[uuid.UUID]*Session = make(map[uuid.UUID]*Session, 0)
|
||||||
|
|
||||||
func OpenSession() *Session {
|
func OpenSession() *Session {
|
||||||
newSessId, err := uuid.NewRandom()
|
newSessId, err := uuid.NewRandom()
|
||||||
|
|||||||
Reference in New Issue
Block a user