From 8ffc5d67ccb00973dccb117fe9ce16466ab29501 Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Wed, 4 Sep 2024 12:01:51 +0300 Subject: [PATCH] Removed mutex --- internal/handlers/ussd/menuhandler.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/handlers/ussd/menuhandler.go b/internal/handlers/ussd/menuhandler.go index 12ddcde..c47f2e0 100644 --- a/internal/handlers/ussd/menuhandler.go +++ b/internal/handlers/ussd/menuhandler.go @@ -9,7 +9,6 @@ import ( "regexp" "strconv" "strings" - "sync" "git.defalsify.org/vise.git/asm" "git.defalsify.org/vise.git/engine" @@ -56,7 +55,6 @@ type FSData struct { // FlagManager handles centralized flag management type FlagManager struct { parser *asm.FlagParser - mu sync.RWMutex } // NewFlagManager creates a new FlagManager instance @@ -74,9 +72,6 @@ func NewFlagManager(csvPath string) (*FlagManager, error) { // GetFlag retrieves a flag value by its label func (fm *FlagManager) GetFlag(label string) (uint32, error) { - fm.mu.RLock() - defer fm.mu.RUnlock() - return fm.parser.GetFlag(label) }