diff --git a/go.mod b/go.mod index c69590b..6b0c74a 100644 --- a/go.mod +++ b/go.mod @@ -6,8 +6,8 @@ require github.com/go-chi/render v1.0.3 require ( github.com/ajg/form v1.5.1 // indirect - github.com/go-chi/chi/v5 v5.0.12 // indirect + github.com/go-chi/chi/v5 v5.0.12 github.com/joho/godotenv v1.5.1 - github.com/sirupsen/logrus v1.9.3 // indirect + github.com/sirupsen/logrus v1.9.3 golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect ) diff --git a/internal/session/service.go b/internal/session/service.go index bfc3545..40e6a42 100644 --- a/internal/session/service.go +++ b/internal/session/service.go @@ -21,6 +21,7 @@ type Service struct { func New() *Service { logger := logrus.New() + mutex = &sync.Mutex{} return &Service{ logger: logger.WithField("desc", "session.Service"), }