From c79d3498ccad36316b85b3e747362f53c6521cb6 Mon Sep 17 00:00:00 2001 From: Carlosokumu Date: Sat, 14 Sep 2024 17:05:11 +0300 Subject: [PATCH] use global vars --- internal/handlers/ussd/menuhandler.go | 4 ++-- internal/http/storage.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/handlers/ussd/menuhandler.go b/internal/handlers/ussd/menuhandler.go index 4992b36..d778f43 100644 --- a/internal/handlers/ussd/menuhandler.go +++ b/internal/handlers/ussd/menuhandler.go @@ -28,8 +28,8 @@ var ( logg = logging.NewVanilla().WithDomain("ussdmenuhandler") scriptDir = path.Join("services", "registration") translationDir = path.Join(scriptDir, "locale") - validPin = 4 - validYOB = 4 + validPin = 4 + validYOB = 4 ) type FSData struct { diff --git a/internal/http/storage.go b/internal/http/storage.go index 9b0cf44..bc01dce 100644 --- a/internal/http/storage.go +++ b/internal/http/storage.go @@ -6,8 +6,8 @@ import ( ) type Storage struct { - Persister *persist.Persister - UserdataDb db.Db + Persister *persist.Persister + UserdataDb db.Db } type StorageProvider interface { @@ -25,7 +25,7 @@ func NewSimpleStorageProvider(stateStore db.Db, userdataStore db.Db) StorageProv pe = pe.WithFlush() return &SimpleStorageProvider{ Storage: Storage{ - Persister: pe, + Persister: pe, UserdataDb: userdataStore, }, }